OLD | NEW |
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 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ |
7 | 7 |
8 #include "chrome/browser/profiles/profile_attributes_storage.h" | 8 #include "chrome/browser/profiles/profile_attributes_storage.h" |
9 #include "ui/views/window/non_client_view.h" | 9 #include "ui/views/window/non_client_view.h" |
10 | 10 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // the incognito avatar, or profile avatar for teleported frames in ChromeOS. | 82 // the incognito avatar, or profile avatar for teleported frames in ChromeOS. |
83 virtual void UpdateAvatar() = 0; | 83 virtual void UpdateAvatar() = 0; |
84 | 84 |
85 // Updates the title and icon of the old avatar button. | 85 // Updates the title and icon of the old avatar button. |
86 void UpdateOldAvatarButton(); | 86 void UpdateOldAvatarButton(); |
87 | 87 |
88 private: | 88 private: |
89 // views::NonClientFrameView: | 89 // views::NonClientFrameView: |
90 void ViewHierarchyChanged( | 90 void ViewHierarchyChanged( |
91 const ViewHierarchyChangedDetails& details) override; | 91 const ViewHierarchyChangedDetails& details) override; |
| 92 void ActivationChanged(bool active) override; |
92 | 93 |
93 // ProfileAttributesStorage::Observer: | 94 // ProfileAttributesStorage::Observer: |
94 void OnProfileAdded(const base::FilePath& profile_path) override; | 95 void OnProfileAdded(const base::FilePath& profile_path) override; |
95 void OnProfileWasRemoved(const base::FilePath& profile_path, | 96 void OnProfileWasRemoved(const base::FilePath& profile_path, |
96 const base::string16& profile_name) override; | 97 const base::string16& profile_name) override; |
97 void OnProfileAvatarChanged(const base::FilePath& profile_path) override; | 98 void OnProfileAvatarChanged(const base::FilePath& profile_path) override; |
98 | 99 |
99 // Gets a theme provider that should be non-null even before we're added to a | 100 // Gets a theme provider that should be non-null even before we're added to a |
100 // view hierarchy. | 101 // view hierarchy. |
101 const ui::ThemeProvider* GetThemeProviderForProfile() const; | 102 const ui::ThemeProvider* GetThemeProviderForProfile() const; |
(...skipping 16 matching lines...) Expand all Loading... |
118 | 119 |
119 namespace chrome { | 120 namespace chrome { |
120 | 121 |
121 // Provided by a browser_non_client_frame_view_factory_*.cc implementation | 122 // Provided by a browser_non_client_frame_view_factory_*.cc implementation |
122 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( | 123 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( |
123 BrowserFrame* frame, BrowserView* browser_view); | 124 BrowserFrame* frame, BrowserView* browser_view); |
124 | 125 |
125 } // namespace chrome | 126 } // namespace chrome |
126 | 127 |
127 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ | 128 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ |
OLD | NEW |