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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.cc

Issue 682113002: Fix accelerators in avatar gaia webview on mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/profiles/profile_chooser_view.cc
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.cc b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
index f96693ef0633220df8787f240958ffd116a2fc7f..ebe37bc74e3f72b785d98194b8ac6fec16131edf 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -710,6 +710,15 @@ bool ProfileChooserView::AcceleratorPressed(
return true;
}
+bool ProfileChooserView::HandleContextMenu(
+ const content::ContextMenuParams& params) {
+ #ifndef NDEBUG
sky 2014/10/28 17:46:54 #if !defined(NDEBUG_) Also, spacing is off, and d
guohui 2014/10/28 18:02:53 Done.
+ return false;
+ #else
+ return true;
+ #endif
+}
+
void ProfileChooserView::ButtonPressed(views::Button* sender,
const ui::Event& event) {
if (sender == users_button_) {
@@ -1445,6 +1454,7 @@ views::View* ProfileChooserView::CreateGaiaSigninView() {
Profile* profile = browser_->profile();
views::WebView* web_view = new views::WebView(profile);
web_view->LoadInitialURL(url);
+ web_view->GetWebContents()->SetDelegate(this);
web_view->SetPreferredSize(
gfx::Size(kFixedGaiaViewWidth, kFixedGaiaViewHeight));
content::RenderWidgetHostView* rwhv =
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_chooser_view.h ('k') | chrome/browser/ui/webui/signin/inline_login_handler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698