| 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 UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 5 #ifndef UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 
| 6 #define UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 6 #define UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 
| 7 | 7 | 
| 8 #include "ui/views/view.h" | 8 #include "ui/views/view.h" | 
| 9 #include "ui/views/window/client_view.h" | 9 #include "ui/views/window/client_view.h" | 
| 10 | 10 | 
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 198   // Set the accessible name of this view. | 198   // Set the accessible name of this view. | 
| 199   void SetAccessibleName(const string16& name); | 199   void SetAccessibleName(const string16& name); | 
| 200 | 200 | 
| 201   // NonClientView, View overrides: | 201   // NonClientView, View overrides: | 
| 202   virtual gfx::Size GetPreferredSize() OVERRIDE; | 202   virtual gfx::Size GetPreferredSize() OVERRIDE; | 
| 203   virtual gfx::Size GetMinimumSize() OVERRIDE; | 203   virtual gfx::Size GetMinimumSize() OVERRIDE; | 
| 204   virtual gfx::Size GetMaximumSize() OVERRIDE; | 204   virtual gfx::Size GetMaximumSize() OVERRIDE; | 
| 205   virtual void Layout() OVERRIDE; | 205   virtual void Layout() OVERRIDE; | 
| 206   virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 206   virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 
| 207   virtual std::string GetClassName() const OVERRIDE; | 207   virtual std::string GetClassName() const OVERRIDE; | 
| 208 | 208   virtual View* GetEventHandler(const gfx::Rect& rect, EventType type) | 
| 209   virtual views::View* GetEventHandlerForPoint(const gfx::Point& point) |  | 
| 210       OVERRIDE; | 209       OVERRIDE; | 
| 211 | 210 | 
| 212  protected: | 211  protected: | 
| 213   // NonClientView, View overrides: | 212   // NonClientView, View overrides: | 
| 214   virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child) | 213   virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child) | 
| 215       OVERRIDE; | 214       OVERRIDE; | 
| 216 | 215 | 
| 217  private: | 216  private: | 
| 218   // A ClientView object or subclass, responsible for sizing the contents view | 217   // A ClientView object or subclass, responsible for sizing the contents view | 
| 219   // of the window, hit testing and perhaps other tasks depending on the | 218   // of the window, hit testing and perhaps other tasks depending on the | 
| 220   // implementation. | 219   // implementation. | 
| 221   ClientView* client_view_; | 220   ClientView* client_view_; | 
| 222 | 221 | 
| 223   // The NonClientFrameView that renders the non-client portions of the window. | 222   // The NonClientFrameView that renders the non-client portions of the window. | 
| 224   // This object is not owned by the view hierarchy because it can be replaced | 223   // This object is not owned by the view hierarchy because it can be replaced | 
| 225   // dynamically as the system settings change. | 224   // dynamically as the system settings change. | 
| 226   scoped_ptr<NonClientFrameView> frame_view_; | 225   scoped_ptr<NonClientFrameView> frame_view_; | 
| 227 | 226 | 
| 228   // The accessible name of this view. | 227   // The accessible name of this view. | 
| 229   string16 accessible_name_; | 228   string16 accessible_name_; | 
| 230 | 229 | 
| 231   DISALLOW_COPY_AND_ASSIGN(NonClientView); | 230   DISALLOW_COPY_AND_ASSIGN(NonClientView); | 
| 232 }; | 231 }; | 
| 233 | 232 | 
| 234 }  // namespace views | 233 }  // namespace views | 
| 235 | 234 | 
| 236 #endif  // UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 235 #endif  // UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 
| OLD | NEW | 
|---|