| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_VIEWS_NON_CLIENT_VIEW_H_ | 5 #ifndef CHROME_VIEWS_NON_CLIENT_VIEW_H_ |
| 6 #define CHROME_VIEWS_NON_CLIENT_VIEW_H_ | 6 #define CHROME_VIEWS_NON_CLIENT_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/task.h" | 8 #include "base/task.h" |
| 9 #include "chrome/views/view.h" | 9 #include "chrome/views/view.h" |
| 10 #include "chrome/views/client_view.h" | 10 #include "chrome/views/client_view.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 virtual int NonClientHitTest(const gfx::Point& point) = 0; | 52 virtual int NonClientHitTest(const gfx::Point& point) = 0; |
| 53 virtual void GetWindowMask(const gfx::Size& size, | 53 virtual void GetWindowMask(const gfx::Size& size, |
| 54 gfx::Path* window_mask) = 0; | 54 gfx::Path* window_mask) = 0; |
| 55 virtual void EnableClose(bool enable) = 0; | 55 virtual void EnableClose(bool enable) = 0; |
| 56 virtual void ResetWindowControls() = 0; | 56 virtual void ResetWindowControls() = 0; |
| 57 | 57 |
| 58 // Overridden from View: | 58 // Overridden from View: |
| 59 virtual bool HitTest(const gfx::Point& l) const; | 59 virtual bool HitTest(const gfx::Point& l) const; |
| 60 | 60 |
| 61 protected: | 61 protected: |
| 62 virtual void DidChangeBounds(const gfx::Rect& previous, |
| 63 const gfx::Rect& current); |
| 64 |
| 62 NonClientFrameView() : paint_as_active_(false) {} | 65 NonClientFrameView() : paint_as_active_(false) {} |
| 63 | 66 |
| 64 | 67 |
| 65 // Helper for non-client view implementations to determine which area of the | 68 // Helper for non-client view implementations to determine which area of the |
| 66 // window border the specified |point| falls within. The other parameters are | 69 // window border the specified |point| falls within. The other parameters are |
| 67 // the size of the sizing edges, and whether or not the window can be | 70 // the size of the sizing edges, and whether or not the window can be |
| 68 // resized. | 71 // resized. |
| 69 int GetHTComponentForFrame(const gfx::Point& point, | 72 int GetHTComponentForFrame(const gfx::Point& point, |
| 70 int top_resize_border_height, | 73 int top_resize_border_height, |
| 71 int resize_border_thickness, | 74 int resize_border_thickness, |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 217 |
| 215 // Whether or not we should use the native frame. | 218 // Whether or not we should use the native frame. |
| 216 bool use_native_frame_; | 219 bool use_native_frame_; |
| 217 | 220 |
| 218 DISALLOW_COPY_AND_ASSIGN(NonClientView); | 221 DISALLOW_COPY_AND_ASSIGN(NonClientView); |
| 219 }; | 222 }; |
| 220 | 223 |
| 221 } // namespace views | 224 } // namespace views |
| 222 | 225 |
| 223 #endif // #ifndef CHROME_VIEWS_NON_CLIENT_VIEW_H_ | 226 #endif // #ifndef CHROME_VIEWS_NON_CLIENT_VIEW_H_ |
| OLD | NEW |