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

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: Include missing browsertest .js file in chrome_tests.gypi Created 6 years, 2 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 // Returns the thickness of the border that makes up the window frame edges. 123 // Returns the thickness of the border that makes up the window frame edges.
124 // This does not include any client edge. If |restored| is true, acts as if 124 // This does not include any client edge. If |restored| is true, acts as if
125 // the window is restored regardless of the real mode. 125 // the window is restored regardless of the real mode.
126 int FrameBorderThickness(bool restored) const; 126 int FrameBorderThickness(bool restored) const;
127 127
128 // Returns the height of the top resize area. This is smaller than the frame 128 // Returns the height of the top resize area. This is smaller than the frame
129 // border height in order to increase the window draggable area. 129 // border height in order to increase the window draggable area.
130 int TopResizeHeight() const; 130 int TopResizeHeight() const;
131 131
132 // Returns true if the specified point is within the avatar menu buttons.
133 bool IsWithinAvatarMenuButtons(const gfx::Point& point) const;
134
132 // Returns the thickness of the entire nonclient left, right, and bottom 135 // Returns the thickness of the entire nonclient left, right, and bottom
133 // borders, including both the window frame and any client edge. 136 // borders, including both the window frame and any client edge.
134 int NonClientBorderThickness() const; 137 int NonClientBorderThickness() const;
135 138
136 // Returns the bounds of the titlebar icon (or where the icon would be if 139 // Returns the bounds of the titlebar icon (or where the icon would be if
137 // there was one). 140 // there was one).
138 gfx::Rect IconBounds() const; 141 gfx::Rect IconBounds() const;
139 142
140 // Returns true if the view should draw its own custom title bar. 143 // Returns true if the view should draw its own custom title bar.
141 bool ShouldShowWindowTitleBar() const; 144 bool ShouldShowWindowTitleBar() const;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // Background painter for the window frame. 178 // Background painter for the window frame.
176 scoped_ptr<views::FrameBackground> frame_background_; 179 scoped_ptr<views::FrameBackground> frame_background_;
177 180
178 // Observer that handles platform dependent configuration. 181 // Observer that handles platform dependent configuration.
179 scoped_ptr<OpaqueBrowserFrameViewPlatformSpecific> platform_observer_; 182 scoped_ptr<OpaqueBrowserFrameViewPlatformSpecific> platform_observer_;
180 183
181 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); 184 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView);
182 }; 185 };
183 186
184 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 187 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698