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_FRAME_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // If |restored| is true, this is calculated as if the window was restored, | 66 // If |restored| is true, this is calculated as if the window was restored, |
67 // regardless of its current state. | 67 // regardless of its current state. |
68 int GetTopInset(bool restored) const; | 68 int GetTopInset(bool restored) const; |
69 | 69 |
70 // Returns the amount that the theme background should be inset. | 70 // Returns the amount that the theme background should be inset. |
71 int GetThemeBackgroundXInset() const; | 71 int GetThemeBackgroundXInset() const; |
72 | 72 |
73 // Tells the frame to update the throbber. | 73 // Tells the frame to update the throbber. |
74 void UpdateThrobber(bool running); | 74 void UpdateThrobber(bool running); |
75 | 75 |
76 // Tells the frame to update any toolbar elements it has. | |
77 void UpdateToolbar(); | |
78 | |
79 // Returns the location icon, if there is a location icon embedded into the | |
80 // frame. This is the case for web app frames, which do not have a visible | |
81 // toolbar. Instead of using the normal location icon from the location bar | |
82 // in the toolbar, these windows have a location icon in the frame. | |
83 views::View* GetLocationIconView() const; | |
84 | |
85 // Returns the NonClientFrameView of this frame. | 76 // Returns the NonClientFrameView of this frame. |
86 BrowserNonClientFrameView* GetFrameView() const; | 77 BrowserNonClientFrameView* GetFrameView() const; |
87 | 78 |
88 // Returns |true| if we should use the custom frame. | 79 // Returns |true| if we should use the custom frame. |
89 bool UseCustomFrame() const; | 80 bool UseCustomFrame() const; |
90 | 81 |
91 // Returns true when the window placement should be saved. | 82 // Returns true when the window placement should be saved. |
92 bool ShouldSaveWindowPlacement() const; | 83 bool ShouldSaveWindowPlacement() const; |
93 | 84 |
94 // Retrieves the window placement (show state and bounds) for restoring. | 85 // Retrieves the window placement (show state and bounds) for restoring. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 // Used to show the system menu. Only used if | 142 // Used to show the system menu. Only used if |
152 // NativeBrowserFrame::UsesNativeSystemMenu() returns false. | 143 // NativeBrowserFrame::UsesNativeSystemMenu() returns false. |
153 std::unique_ptr<views::MenuRunner> menu_runner_; | 144 std::unique_ptr<views::MenuRunner> menu_runner_; |
154 | 145 |
155 std::unique_ptr<ui::EventHandler> browser_command_handler_; | 146 std::unique_ptr<ui::EventHandler> browser_command_handler_; |
156 | 147 |
157 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); | 148 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); |
158 }; | 149 }; |
159 | 150 |
160 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ | 151 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
OLD | NEW |