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_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 Loading... |
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 Loading... |
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_ |
OLD | NEW |