| 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_OAK_OAK_WINDOW_H_ | 5 #ifndef UI_OAK_OAK_WINDOW_H_ |
| 6 #define UI_OAK_OAK_WINDOW_H_ | 6 #define UI_OAK_OAK_WINDOW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ui/oak/oak_tree_model.h" | 9 #include "ui/oak/oak_tree_model.h" |
| 10 #include "ui/views/controls/tree/tree_view_controller.h" | 10 #include "ui/views/controls/tree/tree_view_controller.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 OakWindow(); | 26 OakWindow(); |
| 27 virtual ~OakWindow(); | 27 virtual ~OakWindow(); |
| 28 | 28 |
| 29 static views::Widget* instance; | 29 static views::Widget* instance; |
| 30 | 30 |
| 31 // Overridden from views::WidgetDelegateView: | 31 // Overridden from views::WidgetDelegateView: |
| 32 virtual bool CanResize() const OVERRIDE; | 32 virtual bool CanResize() const OVERRIDE; |
| 33 virtual bool CanMaximize() const OVERRIDE; | 33 virtual bool CanMaximize() const OVERRIDE; |
| 34 virtual string16 GetWindowTitle() const OVERRIDE; | 34 virtual string16 GetWindowTitle() const OVERRIDE; |
| 35 virtual views::View* GetContentsView() OVERRIDE; | 35 virtual views::View* GetContentsView() OVERRIDE; |
| 36 virtual SkBitmap GetWindowIcon() OVERRIDE; | 36 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; |
| 37 virtual bool ShouldShowWindowIcon() const OVERRIDE; | 37 virtual bool ShouldShowWindowIcon() const OVERRIDE; |
| 38 virtual void DeleteDelegate() OVERRIDE; | 38 virtual void DeleteDelegate() OVERRIDE; |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 // Overridden from views::View: | 41 // Overridden from views::View: |
| 42 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 42 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 43 virtual void ViewHierarchyChanged(bool is_add, | 43 virtual void ViewHierarchyChanged(bool is_add, |
| 44 views::View* parent, | 44 views::View* parent, |
| 45 views::View* child) OVERRIDE; | 45 views::View* child) OVERRIDE; |
| 46 virtual void Layout() OVERRIDE; | 46 virtual void Layout() OVERRIDE; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 60 scoped_ptr<OakDetailsModel> details_model_; | 60 scoped_ptr<OakDetailsModel> details_model_; |
| 61 views::View* details_container_; | 61 views::View* details_container_; |
| 62 | 62 |
| 63 DISALLOW_COPY_AND_ASSIGN(OakWindow); | 63 DISALLOW_COPY_AND_ASSIGN(OakWindow); |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace internal | 66 } // namespace internal |
| 67 } // namespace oak | 67 } // namespace oak |
| 68 | 68 |
| 69 #endif // UI_OAK_OAK_WINDOW_H_ | 69 #endif // UI_OAK_OAK_WINDOW_H_ |
| OLD | NEW |