| 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 "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // left edge of the window. Used in our Non-Client View's Layout. | 56 // left edge of the window. Used in our Non-Client View's Layout. |
| 57 int GetMinimizeButtonOffset() const; | 57 int GetMinimizeButtonOffset() const; |
| 58 | 58 |
| 59 // Retrieves the bounds, in non-client view coordinates for the specified | 59 // Retrieves the bounds, in non-client view coordinates for the specified |
| 60 // TabStrip view. | 60 // TabStrip view. |
| 61 gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const; | 61 gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const; |
| 62 | 62 |
| 63 // Returns the inset of the topmost view in the client view from the top of | 63 // Returns the inset of the topmost view in the client view from the top of |
| 64 // the non-client view. The topmost view depends on the window type. The | 64 // the non-client view. The topmost view depends on the window type. The |
| 65 // topmost view is the tab strip for tabbed browser windows, the toolbar for | 65 // topmost view is the tab strip for tabbed browser windows, the toolbar for |
| 66 // popups, the web contents for app windows and varies for fullscreen windows | 66 // popups, the web contents for app windows and varies for fullscreen windows. |
| 67 int GetTopInset() const; | 67 // If |restored| is true, this is calculated as if the window was restored, |
| 68 // regardless of its current state. |
| 69 int GetTopInset(bool restored) const; |
| 68 | 70 |
| 69 // Returns the amount that the theme background should be inset. | 71 // Returns the amount that the theme background should be inset. |
| 70 int GetThemeBackgroundXInset() const; | 72 int GetThemeBackgroundXInset() const; |
| 71 | 73 |
| 72 // Tells the frame to update the throbber. | 74 // Tells the frame to update the throbber. |
| 73 void UpdateThrobber(bool running); | 75 void UpdateThrobber(bool running); |
| 74 | 76 |
| 75 // Tells the frame to update any toolbar elements it has. | 77 // Tells the frame to update any toolbar elements it has. |
| 76 void UpdateToolbar(); | 78 void UpdateToolbar(); |
| 77 | 79 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // externally). | 146 // externally). |
| 145 scoped_ptr<ui::ThemeProvider> owned_theme_provider_; | 147 scoped_ptr<ui::ThemeProvider> owned_theme_provider_; |
| 146 ui::ThemeProvider* theme_provider_; | 148 ui::ThemeProvider* theme_provider_; |
| 147 | 149 |
| 148 scoped_ptr<ui::EventHandler> browser_command_handler_; | 150 scoped_ptr<ui::EventHandler> browser_command_handler_; |
| 149 | 151 |
| 150 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); | 152 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); |
| 151 }; | 153 }; |
| 152 | 154 |
| 153 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ | 155 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
| OLD | NEW |