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_APP_LIST_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "ui/app_list/app_list_export.h" | 10 #include "ui/app_list/app_list_export.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 AppListMainView* app_list_main_view() { return app_list_main_view_; } | 117 AppListMainView* app_list_main_view() { return app_list_main_view_; } |
118 | 118 |
119 private: | 119 private: |
120 void InitAsBubbleInternal(gfx::NativeView parent, | 120 void InitAsBubbleInternal(gfx::NativeView parent, |
121 PaginationModel* pagination_model, | 121 PaginationModel* pagination_model, |
122 views::BubbleBorder::Arrow arrow, | 122 views::BubbleBorder::Arrow arrow, |
123 bool border_accepts_events, | 123 bool border_accepts_events, |
124 const gfx::Vector2d& anchor_offset); | 124 const gfx::Vector2d& anchor_offset); |
125 | 125 |
126 // Gets the point at the center of the current screen. | 126 // Gets the point at the center of the current screen, excluding the virtual |
127 // |screen_to_keep_centered_on_| must not be NULL. | 127 // keyboard area. |screen_to_keep_centered_on_| must not be NULL. |
128 gfx::Point GetCenterPoint(); | 128 gfx::Point GetCenterPoint(); |
129 | 129 |
130 // Overridden from views::BubbleDelegateView: | 130 // Overridden from views::BubbleDelegateView: |
131 virtual void OnBeforeBubbleWidgetInit( | 131 virtual void OnBeforeBubbleWidgetInit( |
132 views::Widget::InitParams* params, | 132 views::Widget::InitParams* params, |
133 views::Widget* widget) const OVERRIDE; | 133 views::Widget* widget) const OVERRIDE; |
134 | 134 |
135 // Overridden from views::WidgetDelegateView: | 135 // Overridden from views::WidgetDelegateView: |
136 virtual views::View* GetInitiallyFocusedView() OVERRIDE; | 136 virtual views::View* GetInitiallyFocusedView() OVERRIDE; |
137 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; | 137 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; |
(...skipping 30 matching lines...) Expand all Loading... |
168 // If non-NULL, the app list will remain centered on this screen's primary | 168 // If non-NULL, the app list will remain centered on this screen's primary |
169 // display. | 169 // display. |
170 gfx::Screen* screen_to_keep_centered_on_; | 170 gfx::Screen* screen_to_keep_centered_on_; |
171 | 171 |
172 DISALLOW_COPY_AND_ASSIGN(AppListView); | 172 DISALLOW_COPY_AND_ASSIGN(AppListView); |
173 }; | 173 }; |
174 | 174 |
175 } // namespace app_list | 175 } // namespace app_list |
176 | 176 |
177 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 177 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
OLD | NEW |