| 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/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // Set a callback to be called the next time any app list paints. | 109 // Set a callback to be called the next time any app list paints. |
| 110 void SetNextPaintCallback(const base::Closure& callback); | 110 void SetNextPaintCallback(const base::Closure& callback); |
| 111 | 111 |
| 112 #if defined(OS_WIN) | 112 #if defined(OS_WIN) |
| 113 HWND GetHWND() const; | 113 HWND GetHWND() const; |
| 114 #endif | 114 #endif |
| 115 | 115 |
| 116 AppListMainView* app_list_main_view() { return app_list_main_view_; } | 116 AppListMainView* app_list_main_view() { return app_list_main_view_; } |
| 117 | 117 |
| 118 private: | 118 private: |
| 119 friend class test::AppListViewTestApi; | 119 friend class ::test::AppListViewTestApi; |
| 120 | 120 |
| 121 void InitAsBubbleInternal(gfx::NativeView parent, | 121 void InitAsBubbleInternal(gfx::NativeView parent, |
| 122 PaginationModel* pagination_model, | 122 PaginationModel* pagination_model, |
| 123 views::BubbleBorder::Arrow arrow, | 123 views::BubbleBorder::Arrow arrow, |
| 124 bool border_accepts_events, | 124 bool border_accepts_events, |
| 125 const gfx::Vector2d& anchor_offset); | 125 const gfx::Vector2d& anchor_offset); |
| 126 | 126 |
| 127 // Overridden from views::BubbleDelegateView: | 127 // Overridden from views::BubbleDelegateView: |
| 128 virtual void OnBeforeBubbleWidgetInit( | 128 virtual void OnBeforeBubbleWidgetInit( |
| 129 views::Widget::InitParams* params, | 129 views::Widget::InitParams* params, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 168 |
| 169 // For UMA and testing. If non-null, triggered when the app list is painted. | 169 // For UMA and testing. If non-null, triggered when the app list is painted. |
| 170 base::Closure next_paint_callback_; | 170 base::Closure next_paint_callback_; |
| 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 |