Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Side by Side Diff: chrome/browser/ui/views/frame/browser_frame.h

Issue 2833363002: Add GetCaptionButtonHeightInDIPs() method (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Used to show the system menu. Only used if 146 // Used to show the system menu. Only used if
144 // NativeBrowserFrame::UsesNativeSystemMenu() returns false. 147 // NativeBrowserFrame::UsesNativeSystemMenu() returns false.
145 std::unique_ptr<views::MenuRunner> menu_runner_; 148 std::unique_ptr<views::MenuRunner> menu_runner_;
146 149
147 std::unique_ptr<ui::EventHandler> browser_command_handler_; 150 std::unique_ptr<ui::EventHandler> browser_command_handler_;
148 151
149 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); 152 DISALLOW_COPY_AND_ASSIGN(BrowserFrame);
150 }; 153 };
151 154
152 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ 155 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698