| OLD | NEW |
| 1 // Copyright (c) 2010 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 "base/task.h" | 9 #include "base/task.h" |
| 10 #include "views/view.h" | 10 #include "views/view.h" |
| 11 #include "views/window/client_view.h" | 11 #include "views/window/client_view.h" |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 211 |
| 212 // Set the accessible name of this view. | 212 // Set the accessible name of this view. |
| 213 void SetAccessibleName(const string16& name); | 213 void SetAccessibleName(const string16& name); |
| 214 | 214 |
| 215 // NonClientView, View overrides: | 215 // NonClientView, View overrides: |
| 216 virtual gfx::Size GetPreferredSize() OVERRIDE; | 216 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 217 virtual gfx::Size GetMinimumSize() OVERRIDE; | 217 virtual gfx::Size GetMinimumSize() OVERRIDE; |
| 218 virtual void Layout() OVERRIDE; | 218 virtual void Layout() OVERRIDE; |
| 219 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 219 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 220 | 220 |
| 221 virtual views::View* GetEventHandlerForPoint(const gfx::Point& point) |
| 222 OVERRIDE; |
| 223 |
| 221 protected: | 224 protected: |
| 222 // NonClientView, View overrides: | 225 // NonClientView, View overrides: |
| 223 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child) | 226 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child) |
| 224 OVERRIDE; | 227 OVERRIDE; |
| 225 virtual views::View* GetEventHandlerForPoint(const gfx::Point& point) | |
| 226 OVERRIDE; | |
| 227 | 228 |
| 228 private: | 229 private: |
| 229 // The frame that hosts this NonClientView. | 230 // The frame that hosts this NonClientView. |
| 230 Window* frame_; | 231 Window* frame_; |
| 231 | 232 |
| 232 // A ClientView object or subclass, responsible for sizing the contents view | 233 // A ClientView object or subclass, responsible for sizing the contents view |
| 233 // of the window, hit testing and perhaps other tasks depending on the | 234 // of the window, hit testing and perhaps other tasks depending on the |
| 234 // implementation. | 235 // implementation. |
| 235 ClientView* client_view_; | 236 ClientView* client_view_; |
| 236 | 237 |
| 237 // The NonClientFrameView that renders the non-client portions of the window. | 238 // The NonClientFrameView that renders the non-client portions of the window. |
| 238 // This object is not owned by the view hierarchy because it can be replaced | 239 // This object is not owned by the view hierarchy because it can be replaced |
| 239 // dynamically as the system settings change. | 240 // dynamically as the system settings change. |
| 240 scoped_ptr<NonClientFrameView> frame_view_; | 241 scoped_ptr<NonClientFrameView> frame_view_; |
| 241 | 242 |
| 242 // The accessible name of this view. | 243 // The accessible name of this view. |
| 243 string16 accessible_name_; | 244 string16 accessible_name_; |
| 244 | 245 |
| 245 DISALLOW_COPY_AND_ASSIGN(NonClientView); | 246 DISALLOW_COPY_AND_ASSIGN(NonClientView); |
| 246 }; | 247 }; |
| 247 | 248 |
| 248 } // namespace views | 249 } // namespace views |
| 249 | 250 |
| 250 #endif // #ifndef VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 251 #endif // #ifndef VIEWS_WINDOW_NON_CLIENT_VIEW_H_ |
| OLD | NEW |