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_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_ICON_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_ICON_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_ICON_VIEW_H_ |
7 | 7 |
8 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" | 8 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" |
9 #include "chrome/browser/ui/passwords/manage_passwords_icon.h" | 9 #include "chrome/browser/ui/passwords/manage_passwords_icon.h" |
10 #include "chrome/browser/ui/views/location_bar/bubble_icon_view.h" | 10 #include "chrome/browser/ui/views/location_bar/bubble_icon_view.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 void AboutToRequestFocusFromTabTraversal(bool reverse) override; | 31 void AboutToRequestFocusFromTabTraversal(bool reverse) override; |
32 | 32 |
33 #if defined(UNIT_TEST) | 33 #if defined(UNIT_TEST) |
34 int icon_id() const { return icon_id_; } | 34 int icon_id() const { return icon_id_; } |
35 int tooltip_text_id() const { return tooltip_text_id_; } | 35 int tooltip_text_id() const { return tooltip_text_id_; } |
36 #endif | 36 #endif |
37 | 37 |
38 protected: | 38 protected: |
39 // ManagePasswordsIcon: | 39 // ManagePasswordsIcon: |
40 void UpdateVisibleUI() override; | 40 void UpdateVisibleUI() override; |
| 41 void OnChangingState() override; |
41 | 42 |
42 private: | 43 private: |
43 | 44 |
44 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsIconView); | 45 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsIconView); |
45 }; | 46 }; |
46 | 47 |
47 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_ICON_VIEW_H_ | 48 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_MANAGE_PASSWORDS_ICON_VIEW_H_ |
OLD | NEW |