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