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_APP_LIST_VIEWS_CONTENTS_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_ |
6 #define UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // Sets show state and animates the subviews to match the show state. | 63 // Sets show state and animates the subviews to match the show state. |
64 void SetShowState(ShowState show_state); | 64 void SetShowState(ShowState show_state); |
65 | 65 |
66 void Prerender(); | 66 void Prerender(); |
67 | 67 |
68 AppsContainerView* apps_container_view() { return apps_container_view_; } | 68 AppsContainerView* apps_container_view() { return apps_container_view_; } |
69 | 69 |
70 ShowState show_state() const { return show_state_; } | 70 ShowState show_state() const { return show_state_; } |
71 | 71 |
72 // Overridden from views::View: | 72 // Overridden from views::View: |
73 virtual gfx::Size GetPreferredSize() OVERRIDE; | 73 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
74 virtual void Layout() OVERRIDE; | 74 virtual void Layout() OVERRIDE; |
75 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 75 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
76 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE; | 76 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE; |
77 | 77 |
78 private: | 78 private: |
79 // Invoked when show state is changed. | 79 // Invoked when show state is changed. |
80 void ShowStateChanged(); | 80 void ShowStateChanged(); |
81 | 81 |
82 void CalculateIdealBounds(); | 82 void CalculateIdealBounds(); |
83 void AnimateToIdealBounds(); | 83 void AnimateToIdealBounds(); |
(...skipping 10 matching lines...) Expand all Loading... |
94 | 94 |
95 scoped_ptr<views::ViewModel> view_model_; | 95 scoped_ptr<views::ViewModel> view_model_; |
96 scoped_ptr<views::BoundsAnimator> bounds_animator_; | 96 scoped_ptr<views::BoundsAnimator> bounds_animator_; |
97 | 97 |
98 DISALLOW_COPY_AND_ASSIGN(ContentsView); | 98 DISALLOW_COPY_AND_ASSIGN(ContentsView); |
99 }; | 99 }; |
100 | 100 |
101 } // namespace app_list | 101 } // namespace app_list |
102 | 102 |
103 #endif // UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_ | 103 #endif // UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_ |
OLD | NEW |