| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 5 #ifndef VIEWS_WINDOW_NON_CLIENT_VIEW_H_ |
| 6 #define VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 6 #define VIEWS_WINDOW_NON_CLIENT_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "views/view.h" | 9 #include "views/view.h" |
| 10 #include "views/window/client_view.h" | 10 #include "views/window/client_view.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // Overridden from View: | 63 // Overridden from View: |
| 64 virtual bool HitTest(const gfx::Point& l) const OVERRIDE; | 64 virtual bool HitTest(const gfx::Point& l) const OVERRIDE; |
| 65 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 65 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 66 virtual std::string GetClassName() const OVERRIDE; | 66 virtual std::string GetClassName() const OVERRIDE; |
| 67 | 67 |
| 68 protected: | 68 protected: |
| 69 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; | 69 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; |
| 70 | 70 |
| 71 NonClientFrameView() : paint_as_active_(false) {} | 71 NonClientFrameView() : paint_as_active_(false) {} |
| 72 | 72 |
| 73 | |
| 74 // Helper for non-client view implementations to determine which area of the | 73 // Helper for non-client view implementations to determine which area of the |
| 75 // window border the specified |point| falls within. The other parameters are | 74 // window border the specified |point| falls within. The other parameters are |
| 76 // the size of the sizing edges, and whether or not the window can be | 75 // the size of the sizing edges, and whether or not the window can be |
| 77 // resized. | 76 // resized. |
| 78 int GetHTComponentForFrame(const gfx::Point& point, | 77 int GetHTComponentForFrame(const gfx::Point& point, |
| 79 int top_resize_border_height, | 78 int top_resize_border_height, |
| 80 int resize_border_thickness, | 79 int resize_border_thickness, |
| 81 int top_resize_corner_height, | 80 int top_resize_corner_height, |
| 82 int resize_corner_width, | 81 int resize_corner_width, |
| 83 bool can_resize); | 82 bool can_resize); |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 | 230 |
| 232 // The accessible name of this view. | 231 // The accessible name of this view. |
| 233 string16 accessible_name_; | 232 string16 accessible_name_; |
| 234 | 233 |
| 235 DISALLOW_COPY_AND_ASSIGN(NonClientView); | 234 DISALLOW_COPY_AND_ASSIGN(NonClientView); |
| 236 }; | 235 }; |
| 237 | 236 |
| 238 } // namespace views | 237 } // namespace views |
| 239 | 238 |
| 240 #endif // #ifndef VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 239 #endif // #ifndef VIEWS_WINDOW_NON_CLIENT_VIEW_H_ |
| OLD | NEW |