Chromium Code Reviews| 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 "ui/app_list/app_list_export.h" | 9 #include "ui/app_list/app_list_export.h" |
| 10 #include "ui/app_list/signin_delegate_observer.h" | 10 #include "ui/app_list/signin_delegate_observer.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 52 app_list::ApplicationDragAndDropHost* drag_and_drop_host); | 52 app_list::ApplicationDragAndDropHost* drag_and_drop_host); |
| 53 | 53 |
| 54 // Shows the UI when there are no pending icon loads. Otherwise, starts a | 54 // Shows the UI when there are no pending icon loads. Otherwise, starts a |
| 55 // timer to show the UI when a maximum allowed wait time has expired. | 55 // timer to show the UI when a maximum allowed wait time has expired. |
| 56 void ShowWhenReady(); | 56 void ShowWhenReady(); |
| 57 | 57 |
| 58 void Close(); | 58 void Close(); |
| 59 | 59 |
| 60 void UpdateBounds(); | 60 void UpdateBounds(); |
| 61 | 61 |
| 62 void SetModel(AppListModel* model); | |
|
tapted
2013/07/31 05:43:53
this should take a scoped_ptr, to make the ownersh
calamity
2013/08/01 08:35:45
Removed.
| |
| 63 | |
| 62 // Overridden from views::View: | 64 // Overridden from views::View: |
| 63 virtual gfx::Size GetPreferredSize() OVERRIDE; | 65 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 64 | 66 |
| 65 // WidgetDelegate overrides: | 67 // WidgetDelegate overrides: |
| 66 virtual bool ShouldHandleSystemCommands() const OVERRIDE; | 68 virtual bool ShouldHandleSystemCommands() const OVERRIDE; |
| 67 | 69 |
| 68 void Prerender(); | 70 void Prerender(); |
| 69 | 71 |
| 70 // Invoked when the sign-in status is changed to switch on/off sign-in view. | 72 // Invoked when the sign-in status is changed to switch on/off sign-in view. |
| 71 void OnSigninStatusChanged(); | 73 void OnSigninStatusChanged(); |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 98 | 100 |
| 99 AppListMainView* app_list_main_view_; | 101 AppListMainView* app_list_main_view_; |
| 100 SigninView* signin_view_; | 102 SigninView* signin_view_; |
| 101 | 103 |
| 102 DISALLOW_COPY_AND_ASSIGN(AppListView); | 104 DISALLOW_COPY_AND_ASSIGN(AppListView); |
| 103 }; | 105 }; |
| 104 | 106 |
| 105 } // namespace app_list | 107 } // namespace app_list |
| 106 | 108 |
| 107 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ | 109 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ |
| OLD | NEW |