Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Side by Side Diff: chrome/browser/ui/views/aura/app_list_window.h

Issue 9033007: Rename the aura_shell namespace to ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_WINDOW_H_
6 #define CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_WINDOW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_WINDOW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ash/shell_delegate.h" 9 #include "ash/shell_delegate.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/tab_first_render_watcher.h" 11 #include "chrome/browser/tab_first_render_watcher.h"
12 #include "chrome/browser/ui/webui/aura/app_list_ui_delegate.h" 12 #include "chrome/browser/ui/webui/aura/app_list_ui_delegate.h"
13 #include "content/public/browser/web_contents_delegate.h" 13 #include "content/public/browser/web_contents_delegate.h"
14 #include "ui/views/widget/widget_delegate.h" 14 #include "ui/views/widget/widget_delegate.h"
15 15
16 class DOMView; 16 class DOMView;
17 17
18 namespace views { 18 namespace views {
19 class Widget; 19 class Widget;
20 } 20 }
21 21
22 class AppListWindow : public views::WidgetDelegate, 22 class AppListWindow : public views::WidgetDelegate,
23 public content::WebContentsDelegate, 23 public content::WebContentsDelegate,
24 public TabFirstRenderWatcher::Delegate, 24 public TabFirstRenderWatcher::Delegate,
25 public AppListUIDelegate { 25 public AppListUIDelegate {
26 public: 26 public:
27 AppListWindow( 27 AppListWindow(
28 const gfx::Rect& bounds, 28 const gfx::Rect& bounds,
29 const aura_shell::ShellDelegate::SetWidgetCallback& callback); 29 const ash::ShellDelegate::SetWidgetCallback& callback);
30 30
31 private: 31 private:
32 virtual ~AppListWindow(); 32 virtual ~AppListWindow();
33 33
34 // views::WidgetDelegate overrides: 34 // views::WidgetDelegate overrides:
35 virtual void DeleteDelegate() OVERRIDE; 35 virtual void DeleteDelegate() OVERRIDE;
36 virtual views::View* GetInitiallyFocusedView() OVERRIDE; 36 virtual views::View* GetInitiallyFocusedView() OVERRIDE;
37 virtual views::Widget* GetWidget() OVERRIDE; 37 virtual views::Widget* GetWidget() OVERRIDE;
38 virtual const views::Widget* GetWidget() const OVERRIDE; 38 virtual const views::Widget* GetWidget() const OVERRIDE;
39 39
(...skipping 19 matching lines...) Expand all
59 // Check and fire set widget callback if we are ready. 59 // Check and fire set widget callback if we are ready.
60 void SetWidgetIfReady(); 60 void SetWidgetIfReady();
61 61
62 views::Widget* widget_; 62 views::Widget* widget_;
63 DOMView* contents_; 63 DOMView* contents_;
64 64
65 // Monitors TabContents and set |content_rendered_| flag when it's rendered. 65 // Monitors TabContents and set |content_rendered_| flag when it's rendered.
66 scoped_ptr<TabFirstRenderWatcher> tab_watcher_; 66 scoped_ptr<TabFirstRenderWatcher> tab_watcher_;
67 67
68 // Callback to set app list widget when it's ready. 68 // Callback to set app list widget when it's ready.
69 aura_shell::ShellDelegate::SetWidgetCallback callback_; 69 ash::ShellDelegate::SetWidgetCallback callback_;
70 70
71 // True if webui is rendered. 71 // True if webui is rendered.
72 bool content_rendered_; 72 bool content_rendered_;
73 73
74 // True if apps info is loaded by webui. 74 // True if apps info is loaded by webui.
75 bool apps_loaded_; 75 bool apps_loaded_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(AppListWindow); 77 DISALLOW_COPY_AND_ASSIGN(AppListWindow);
78 }; 78 };
79 79
80 #endif // CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_WINDOW_H_ 80 #endif // CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698