Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(510)

Side by Side Diff: chrome/browser/chromeos/login/login_html_dialog.cc

Issue 9382037: Move ContextMenuParams struct from webkit/glue to content/public/common. The reasons are: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/login_html_dialog.h" 5 #include "chrome/browser/chromeos/login/login_html_dialog.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/chromeos/frame/bubble_frame_view.h" 8 #include "chrome/browser/chromeos/frame/bubble_frame_view.h"
9 #include "chrome/browser/chromeos/frame/bubble_window.h" 9 #include "chrome/browser/chromeos/frame/bubble_window.h"
10 #include "chrome/browser/chromeos/login/helper.h" 10 #include "chrome/browser/chromeos/login/helper.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 void LoginHtmlDialog::OnCloseContents(WebContents* source, 134 void LoginHtmlDialog::OnCloseContents(WebContents* source,
135 bool* out_close_dialog) { 135 bool* out_close_dialog) {
136 if (out_close_dialog) 136 if (out_close_dialog)
137 *out_close_dialog = true; 137 *out_close_dialog = true;
138 } 138 }
139 139
140 bool LoginHtmlDialog::ShouldShowDialogTitle() const { 140 bool LoginHtmlDialog::ShouldShowDialogTitle() const {
141 return true; 141 return true;
142 } 142 }
143 143
144 bool LoginHtmlDialog::HandleContextMenu(const ContextMenuParams& params) { 144 bool LoginHtmlDialog::HandleContextMenu(
145 const content::ContextMenuParams& params) {
145 // Disable context menu. 146 // Disable context menu.
146 return true; 147 return true;
147 } 148 }
148 149
149 void LoginHtmlDialog::Observe(int type, 150 void LoginHtmlDialog::Observe(int type,
150 const content::NotificationSource& source, 151 const content::NotificationSource& source,
151 const content::NotificationDetails& details) { 152 const content::NotificationDetails& details) {
152 DCHECK(type == content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME); 153 DCHECK(type == content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME);
153 #if defined(USE_AURA) 154 #if defined(USE_AURA)
154 // TODO(saintlou): Do we need a throbber for Aura? 155 // TODO(saintlou): Do we need a throbber for Aura?
155 NOTIMPLEMENTED(); 156 NOTIMPLEMENTED();
156 #else 157 #else
157 if (bubble_frame_view_) 158 if (bubble_frame_view_)
158 bubble_frame_view_->StopThrobber(); 159 bubble_frame_view_->StopThrobber();
159 #endif 160 #endif
160 } 161 }
161 162
162 } // namespace chromeos 163 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698