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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 gfx::ImageSkia GetFrameOverlayImage() const; | 79 gfx::ImageSkia GetFrameOverlayImage() const; |
80 | 80 |
81 // Update the profile switcher button if one should exist. Otherwise, update | 81 // Update the profile switcher button if one should exist. Otherwise, update |
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: |
| 90 void ViewHierarchyChanged( |
| 91 const ViewHierarchyChangedDetails& details) override; |
| 92 |
89 // ProfileAttributesStorage::Observer: | 93 // ProfileAttributesStorage::Observer: |
90 void OnProfileAdded(const base::FilePath& profile_path) override; | 94 void OnProfileAdded(const base::FilePath& profile_path) override; |
91 void OnProfileWasRemoved(const base::FilePath& profile_path, | 95 void OnProfileWasRemoved(const base::FilePath& profile_path, |
92 const base::string16& profile_name) override; | 96 const base::string16& profile_name) override; |
93 void OnProfileAvatarChanged(const base::FilePath& profile_path) override; | 97 void OnProfileAvatarChanged(const base::FilePath& profile_path) override; |
94 | 98 |
95 // Gets a theme provider that should be non-null even before we're added to a | 99 // Gets a theme provider that should be non-null even before we're added to a |
96 // view hierarchy. | 100 // view hierarchy. |
97 const ui::ThemeProvider* GetThemeProviderForProfile() const; | 101 const ui::ThemeProvider* GetThemeProviderForProfile() const; |
98 | 102 |
(...skipping 15 matching lines...) Expand all Loading... |
114 | 118 |
115 namespace chrome { | 119 namespace chrome { |
116 | 120 |
117 // Provided by a browser_non_client_frame_view_factory_*.cc implementation | 121 // Provided by a browser_non_client_frame_view_factory_*.cc implementation |
118 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( | 122 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( |
119 BrowserFrame* frame, BrowserView* browser_view); | 123 BrowserFrame* frame, BrowserView* browser_view); |
120 | 124 |
121 } // namespace chrome | 125 } // namespace chrome |
122 | 126 |
123 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ | 127 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ |
OLD | NEW |