| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_ICON_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_ICON_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_ICON_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_ICON_VIEWS_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" | 9 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" |
| 10 #include "chrome/browser/ui/passwords/manage_passwords_icon_view.h" | 10 #include "chrome/browser/ui/passwords/manage_passwords_icon_view.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 explicit ManagePasswordsIconViews(CommandUpdater* updater); | 22 explicit ManagePasswordsIconViews(CommandUpdater* updater); |
| 23 ~ManagePasswordsIconViews() override; | 23 ~ManagePasswordsIconViews() override; |
| 24 | 24 |
| 25 // ManagePasswordsIconView: | 25 // ManagePasswordsIconView: |
| 26 void SetState(password_manager::ui::State state) override; | 26 void SetState(password_manager::ui::State state) override; |
| 27 | 27 |
| 28 // BubbleIconView: | 28 // BubbleIconView: |
| 29 void OnExecuting(BubbleIconView::ExecuteSource source) override; | 29 void OnExecuting(BubbleIconView::ExecuteSource source) override; |
| 30 bool OnMousePressed(const ui::MouseEvent& event) override; | 30 bool OnMousePressed(const ui::MouseEvent& event) override; |
| 31 bool OnKeyPressed(const ui::KeyEvent& event) override; | 31 bool OnKeyPressed(const ui::KeyEvent& event) override; |
| 32 views::BubbleDelegateView* GetBubble() const override; | 32 views::BubbleDialogDelegateView* GetBubble() const override; |
| 33 gfx::VectorIconId GetVectorIcon() const override; | 33 gfx::VectorIconId GetVectorIcon() const override; |
| 34 | 34 |
| 35 // views::View: | 35 // views::View: |
| 36 void AboutToRequestFocusFromTabTraversal(bool reverse) override; | 36 void AboutToRequestFocusFromTabTraversal(bool reverse) override; |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 friend class ManagePasswordsIconViewTest; | 39 friend class ManagePasswordsIconViewTest; |
| 40 | 40 |
| 41 // Updates the UI to match |state_|. | 41 // Updates the UI to match |state_|. |
| 42 void UpdateUiForState(); | 42 void UpdateUiForState(); |
| 43 | 43 |
| 44 password_manager::ui::State state_; | 44 password_manager::ui::State state_; |
| 45 | 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsIconViews); | 46 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsIconViews); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_ICON_VIEWS_H_ | 49 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_ICON_VIEWS_H_ |
| OLD | NEW |