| 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_forward.h" | 8 #include "base/callback_forward.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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 void RemoveObserver(Observer* observer); | 97 void RemoveObserver(Observer* observer); |
| 98 | 98 |
| 99 // Set a callback to be called the next time any app list paints. | 99 // Set a callback to be called the next time any app list paints. |
| 100 static void SetNextPaintCallback(const base::Closure& callback); | 100 static void SetNextPaintCallback(const base::Closure& callback); |
| 101 | 101 |
| 102 #if defined(OS_WIN) | 102 #if defined(OS_WIN) |
| 103 HWND GetHWND() const; | 103 HWND GetHWND() const; |
| 104 #endif | 104 #endif |
| 105 | 105 |
| 106 AppListModel* model() { return model_.get(); } | 106 AppListModel* model() { return model_.get(); } |
| 107 AppListMainView* app_list_main_view() { return app_list_main_view_; } |
| 107 | 108 |
| 108 private: | 109 private: |
| 109 void InitAsBubbleInternal(gfx::NativeView parent, | 110 void InitAsBubbleInternal(gfx::NativeView parent, |
| 110 PaginationModel* pagination_model, | 111 PaginationModel* pagination_model, |
| 111 views::BubbleBorder::Arrow arrow, | 112 views::BubbleBorder::Arrow arrow, |
| 112 bool border_accepts_events, | 113 bool border_accepts_events, |
| 113 const gfx::Vector2d& anchor_offset); | 114 const gfx::Vector2d& anchor_offset); |
| 114 | 115 |
| 115 // Overridden from views::WidgetDelegateView: | 116 // Overridden from views::WidgetDelegateView: |
| 116 virtual views::View* GetInitiallyFocusedView() OVERRIDE; | 117 virtual views::View* GetInitiallyFocusedView() OVERRIDE; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 142 SigninView* signin_view_; | 143 SigninView* signin_view_; |
| 143 | 144 |
| 144 ObserverList<Observer> observers_; | 145 ObserverList<Observer> observers_; |
| 145 | 146 |
| 146 DISALLOW_COPY_AND_ASSIGN(AppListView); | 147 DISALLOW_COPY_AND_ASSIGN(AppListView); |
| 147 }; | 148 }; |
| 148 | 149 |
| 149 } // namespace app_list | 150 } // namespace app_list |
| 150 | 151 |
| 151 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 152 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
| OLD | NEW |