| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 static const gfx::FontList& GetTitleFontList(); | 49 static const gfx::FontList& GetTitleFontList(); |
| 50 | 50 |
| 51 // Initialize the frame (creates the underlying native window). | 51 // Initialize the frame (creates the underlying native window). |
| 52 void InitBrowserFrame(); | 52 void InitBrowserFrame(); |
| 53 | 53 |
| 54 // Determine the distance of the left edge of the minimize button from the | 54 // Determine the distance of the left edge of the minimize button from the |
| 55 // left edge of the window. Used in our Non-Client View's Layout. | 55 // left edge of the window. Used in our Non-Client View's Layout. |
| 56 int GetMinimizeButtonOffset() const; | 56 int GetMinimizeButtonOffset() const; |
| 57 | 57 |
| 58 // Returns the height of the minimize button. |
| 59 int GetMinimizeButtonHeight() const; |
| 60 |
| 58 // Retrieves the bounds, in non-client view coordinates for the specified | 61 // Retrieves the bounds, in non-client view coordinates for the specified |
| 59 // TabStrip view. | 62 // TabStrip view. |
| 60 gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const; | 63 gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const; |
| 61 | 64 |
| 62 // Returns the inset of the topmost view in the client view from the top of | 65 // Returns the inset of the topmost view in the client view from the top of |
| 63 // the non-client view. The topmost view depends on the window type. The | 66 // the non-client view. The topmost view depends on the window type. The |
| 64 // topmost view is the tab strip for tabbed browser windows, the toolbar for | 67 // topmost view is the tab strip for tabbed browser windows, the toolbar for |
| 65 // popups, the web contents for app windows and varies for fullscreen windows. | 68 // popups, the web contents for app windows and varies for fullscreen windows. |
| 66 // If |restored| is true, this is calculated as if the window was restored, | 69 // If |restored| is true, this is calculated as if the window was restored, |
| 67 // regardless of its current state. | 70 // regardless of its current state. |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // Used to show the system menu. Only used if | 145 // Used to show the system menu. Only used if |
| 143 // NativeBrowserFrame::UsesNativeSystemMenu() returns false. | 146 // NativeBrowserFrame::UsesNativeSystemMenu() returns false. |
| 144 std::unique_ptr<views::MenuRunner> menu_runner_; | 147 std::unique_ptr<views::MenuRunner> menu_runner_; |
| 145 | 148 |
| 146 std::unique_ptr<ui::EventHandler> browser_command_handler_; | 149 std::unique_ptr<ui::EventHandler> browser_command_handler_; |
| 147 | 150 |
| 148 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); | 151 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); |
| 149 }; | 152 }; |
| 150 | 153 |
| 151 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ | 154 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
| OLD | NEW |