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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Returns the profile switcher button, if this frame has any. | 57 // Returns the profile switcher button, if this frame has any. |
58 virtual views::View* GetProfileSwitcherView() const; | 58 virtual views::View* GetProfileSwitcherView() const; |
59 | 59 |
60 // Provided for mus. Updates the client-area of the WindowTreeHostMus. | 60 // Provided for mus. Updates the client-area of the WindowTreeHostMus. |
61 virtual void UpdateClientArea(); | 61 virtual void UpdateClientArea(); |
62 | 62 |
| 63 // Provided for mus to update the minimum window size property. |
| 64 virtual void UpdateMinimumSize(); |
| 65 |
63 // Overriden from views::View. | 66 // Overriden from views::View. |
64 void ChildPreferredSizeChanged(views::View* child) override; | 67 void ChildPreferredSizeChanged(views::View* child) override; |
65 void VisibilityChanged(views::View* starting_from, bool is_visible) override; | 68 void VisibilityChanged(views::View* starting_from, bool is_visible) override; |
66 | 69 |
67 protected: | 70 protected: |
68 // Whether the frame should be painted with theming. | 71 // Whether the frame should be painted with theming. |
69 // By default, tabbed browser windows are themed but popup and app windows are | 72 // By default, tabbed browser windows are themed but popup and app windows are |
70 // not. | 73 // not. |
71 virtual bool ShouldPaintAsThemed() const; | 74 virtual bool ShouldPaintAsThemed() const; |
72 | 75 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 136 |
134 namespace chrome { | 137 namespace chrome { |
135 | 138 |
136 // Provided by a browser_non_client_frame_view_factory_*.cc implementation | 139 // Provided by a browser_non_client_frame_view_factory_*.cc implementation |
137 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( | 140 BrowserNonClientFrameView* CreateBrowserNonClientFrameView( |
138 BrowserFrame* frame, BrowserView* browser_view); | 141 BrowserFrame* frame, BrowserView* browser_view); |
139 | 142 |
140 } // namespace chrome | 143 } // namespace chrome |
141 | 144 |
142 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ | 145 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ |
OLD | NEW |