| 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 "chrome/browser/ui/views/profiles/profile_indicator_icon.h" | 9 #include "chrome/browser/ui/views/profiles/profile_indicator_icon.h" |
| 10 #include "ui/views/window/non_client_view.h" | 10 #include "ui/views/window/non_client_view.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // Retrieves the icon to use in the frame to indicate an incognito window. | 47 // Retrieves the icon to use in the frame to indicate an incognito window. |
| 48 gfx::ImageSkia GetIncognitoAvatarIcon() const; | 48 gfx::ImageSkia GetIncognitoAvatarIcon() const; |
| 49 | 49 |
| 50 // Returns COLOR_TOOLBAR_TOP_SEPARATOR[,_INACTIVE] depending on the activation | 50 // Returns COLOR_TOOLBAR_TOP_SEPARATOR[,_INACTIVE] depending on the activation |
| 51 // state of the window. | 51 // state of the window. |
| 52 SkColor GetToolbarTopSeparatorColor() const; | 52 SkColor GetToolbarTopSeparatorColor() const; |
| 53 | 53 |
| 54 // Updates the throbber. | 54 // Updates the throbber. |
| 55 virtual void UpdateThrobber(bool running) = 0; | 55 virtual void UpdateThrobber(bool running) = 0; |
| 56 | 56 |
| 57 // Updates any toolbar components in the frame. The default implementation | |
| 58 // does nothing. | |
| 59 virtual void UpdateToolbar(); | |
| 60 | |
| 61 // Returns the location icon, if this frame has any. | |
| 62 virtual views::View* GetLocationIconView() const; | |
| 63 | |
| 64 // Returns the profile switcher button, if this frame has any. | 57 // Returns the profile switcher button, if this frame has any. |
| 65 virtual views::View* GetProfileSwitcherView() const; | 58 virtual views::View* GetProfileSwitcherView() const; |
| 66 | 59 |
| 67 // Overriden from views::View. | 60 // Overriden from views::View. |
| 68 void VisibilityChanged(views::View* starting_from, bool is_visible) override; | 61 void VisibilityChanged(views::View* starting_from, bool is_visible) override; |
| 69 | 62 |
| 70 protected: | 63 protected: |
| 71 // Whether the frame should be painted with theming. | 64 // Whether the frame should be painted with theming. |
| 72 // By default, tabbed browser windows are themed but popup and app windows are | 65 // By default, tabbed browser windows are themed but popup and app windows are |
| 73 // not. | 66 // not. |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 129 |
| 137 namespace chrome { | 130 namespace chrome { |
| 138 | 131 |
| 139 // Provided by a browser_non_client_frame_view_factory_*.cc implementation | 132 // Provided by a browser_non_client_frame_view_factory_*.cc implementation |
| 140 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( | 133 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( |
| 141 BrowserFrame* frame, BrowserView* browser_view); | 134 BrowserFrame* frame, BrowserView* browser_view); |
| 142 | 135 |
| 143 } // namespace chrome | 136 } // namespace chrome |
| 144 | 137 |
| 145 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ | 138 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ |
| OLD | NEW |