| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/views/view.h" | 9 #include "ui/views/view.h" |
| 10 #include "ui/views/view_targeter_delegate.h" | 10 #include "ui/views/view_targeter_delegate.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 virtual void UpdateWindowIcon() = 0; | 87 virtual void UpdateWindowIcon() = 0; |
| 88 virtual void UpdateWindowTitle() = 0; | 88 virtual void UpdateWindowTitle() = 0; |
| 89 | 89 |
| 90 // Whether the widget can be resized or maximized has changed. | 90 // Whether the widget can be resized or maximized has changed. |
| 91 virtual void SizeConstraintsChanged() = 0; | 91 virtual void SizeConstraintsChanged() = 0; |
| 92 | 92 |
| 93 // The widget's activation state has changed to |active|. | 93 // The widget's activation state has changed to |active|. |
| 94 virtual void ActivationChanged(bool active); | 94 virtual void ActivationChanged(bool active); |
| 95 | 95 |
| 96 // View: | 96 // View: |
| 97 void GetAccessibleState(ui::AXViewState* state) override; | 97 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 98 const char* GetClassName() const override; | 98 const char* GetClassName() const override; |
| 99 | 99 |
| 100 protected: | 100 protected: |
| 101 NonClientFrameView(); | 101 NonClientFrameView(); |
| 102 | 102 |
| 103 // ViewTargeterDelegate: | 103 // ViewTargeterDelegate: |
| 104 bool DoesIntersectRect(const View* target, | 104 bool DoesIntersectRect(const View* target, |
| 105 const gfx::Rect& rect) const override; | 105 const gfx::Rect& rect) const override; |
| 106 | 106 |
| 107 // View: | 107 // View: |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 void LayoutFrameView(); | 228 void LayoutFrameView(); |
| 229 | 229 |
| 230 // Set the accessible name of this view. | 230 // Set the accessible name of this view. |
| 231 void SetAccessibleName(const base::string16& name); | 231 void SetAccessibleName(const base::string16& name); |
| 232 | 232 |
| 233 // NonClientView, View overrides: | 233 // NonClientView, View overrides: |
| 234 gfx::Size GetPreferredSize() const override; | 234 gfx::Size GetPreferredSize() const override; |
| 235 gfx::Size GetMinimumSize() const override; | 235 gfx::Size GetMinimumSize() const override; |
| 236 gfx::Size GetMaximumSize() const override; | 236 gfx::Size GetMaximumSize() const override; |
| 237 void Layout() override; | 237 void Layout() override; |
| 238 void GetAccessibleState(ui::AXViewState* state) override; | 238 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 239 const char* GetClassName() const override; | 239 const char* GetClassName() const override; |
| 240 | 240 |
| 241 views::View* GetTooltipHandlerForPoint(const gfx::Point& point) override; | 241 views::View* GetTooltipHandlerForPoint(const gfx::Point& point) override; |
| 242 | 242 |
| 243 protected: | 243 protected: |
| 244 // NonClientView, View overrides: | 244 // NonClientView, View overrides: |
| 245 void ViewHierarchyChanged( | 245 void ViewHierarchyChanged( |
| 246 const ViewHierarchyChangedDetails& details) override; | 246 const ViewHierarchyChangedDetails& details) override; |
| 247 | 247 |
| 248 private: | 248 private: |
| (...skipping 19 matching lines...) Expand all Loading... |
| 268 | 268 |
| 269 // The accessible name of this view. | 269 // The accessible name of this view. |
| 270 base::string16 accessible_name_; | 270 base::string16 accessible_name_; |
| 271 | 271 |
| 272 DISALLOW_COPY_AND_ASSIGN(NonClientView); | 272 DISALLOW_COPY_AND_ASSIGN(NonClientView); |
| 273 }; | 273 }; |
| 274 | 274 |
| 275 } // namespace views | 275 } // namespace views |
| 276 | 276 |
| 277 #endif // UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ | 277 #endif // UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ |
| OLD | NEW |