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

Side by Side Diff: chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc

Issue 394403003: Close the password bubble on the icon click. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename the getter Created 6 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/ui/views/passwords/manage_passwords_icon_view.h" 5 #include "chrome/browser/ui/views/passwords/manage_passwords_icon_view.h"
6 6
7 #include "chrome/app/chrome_command_ids.h" 7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/command_updater.h" 8 #include "chrome/browser/command_updater.h"
9 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" 9 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h"
10 #include "chrome/browser/ui/view_ids.h" 10 #include "chrome/browser/ui/view_ids.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 } 62 }
63 63
64 bool ManagePasswordsIconView::IsBubbleShowing() const { 64 bool ManagePasswordsIconView::IsBubbleShowing() const {
65 return ManagePasswordsBubbleView::IsShowing(); 65 return ManagePasswordsBubbleView::IsShowing();
66 } 66 }
67 67
68 void ManagePasswordsIconView::OnExecuting( 68 void ManagePasswordsIconView::OnExecuting(
69 BubbleIconView::ExecuteSource source) { 69 BubbleIconView::ExecuteSource source) {
70 } 70 }
71
72 bool ManagePasswordsIconView::OnMousePressed(const ui::MouseEvent& event) {
73 bool result = BubbleIconView::OnMousePressed(event);
74 if (IsBubbleShowing())
75 ManagePasswordsBubbleView::CloseBubble();
76 return result;
77 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698