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

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

Issue 355233002: Fix build when ENABLE_MANAGED_USERS is not defined (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More bauerb comments Created 6 years, 5 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_OPAQUE_BROWSER_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/ui/view_ids.h" 9 #include "chrome/browser/ui/view_ids.h"
10 #include "chrome/browser/ui/views/frame/browser_frame.h" 10 #include "chrome/browser/ui/views/frame/browser_frame.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 // Returns the thickness of the border that makes up the window frame edges. 119 // Returns the thickness of the border that makes up the window frame edges.
120 // This does not include any client edge. If |restored| is true, acts as if 120 // This does not include any client edge. If |restored| is true, acts as if
121 // the window is restored regardless of the real mode. 121 // the window is restored regardless of the real mode.
122 int FrameBorderThickness(bool restored) const; 122 int FrameBorderThickness(bool restored) const;
123 123
124 // Returns the height of the top resize area. This is smaller than the frame 124 // Returns the height of the top resize area. This is smaller than the frame
125 // border height in order to increase the window draggable area. 125 // border height in order to increase the window draggable area.
126 int TopResizeHeight() const; 126 int TopResizeHeight() const;
127 127
128 // Returns true if the specified point is within the avatar menu buttons.
129 bool IsWithinAvatarMenuButtons(const gfx::Point& point) const;
130
128 // Returns the thickness of the entire nonclient left, right, and bottom 131 // Returns the thickness of the entire nonclient left, right, and bottom
129 // borders, including both the window frame and any client edge. 132 // borders, including both the window frame and any client edge.
130 int NonClientBorderThickness() const; 133 int NonClientBorderThickness() const;
131 134
132 // Returns the bounds of the titlebar icon (or where the icon would be if 135 // Returns the bounds of the titlebar icon (or where the icon would be if
133 // there was one). 136 // there was one).
134 gfx::Rect IconBounds() const; 137 gfx::Rect IconBounds() const;
135 138
136 // Returns true if the view should draw its own custom title bar. 139 // Returns true if the view should draw its own custom title bar.
137 bool ShouldShowWindowTitleBar() const; 140 bool ShouldShowWindowTitleBar() const;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // Background painter for the window frame. 174 // Background painter for the window frame.
172 scoped_ptr<views::FrameBackground> frame_background_; 175 scoped_ptr<views::FrameBackground> frame_background_;
173 176
174 // Observer that handles platform dependent configuration. 177 // Observer that handles platform dependent configuration.
175 scoped_ptr<OpaqueBrowserFrameViewPlatformSpecific> platform_observer_; 178 scoped_ptr<OpaqueBrowserFrameViewPlatformSpecific> platform_observer_;
176 179
177 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); 180 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView);
178 }; 181 };
179 182
180 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 183 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698