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

Unified Diff: chrome/browser/ui/views/aura/app_list_window.h

Issue 8394003: [Aura] A temp app list window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync, Show->SetVisible and update for layer animation framework change Created 9 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/aura/app_list_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/aura/app_list_window.h
diff --git a/chrome/browser/ui/views/aura/app_list_window.h b/chrome/browser/ui/views/aura/app_list_window.h
new file mode 100644
index 0000000000000000000000000000000000000000..7c9a9e6d9c4589fc3a183ea274c46ada2437793b
--- /dev/null
+++ b/chrome/browser/ui/views/aura/app_list_window.h
@@ -0,0 +1,61 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_WINDOW_H_
+#define CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_WINDOW_H_
+#pragma once
+
+#include "ui/aura/desktop_observer.h"
+#include "views/widget/widget_delegate.h"
+
+class DOMView;
+
+namespace views {
+class Widget;
+}
+
+class AppListWindow : public views::WidgetDelegate,
+ public aura::DesktopObserver {
+ public:
+ // Show/hide app list window.
+ static void SetVisible(bool visible);
+
+ // Whether app list window is visible (shown or being shown).
+ static bool IsVisible();
+
+ private:
+ AppListWindow();
+ virtual ~AppListWindow();
+
+ // Overridden from views::WidgetDelegate:
+ virtual void DeleteDelegate() OVERRIDE;
+ virtual views::View* GetContentsView() OVERRIDE;
+ virtual void WindowClosing() OVERRIDE;
+ virtual views::Widget* GetWidget() OVERRIDE;
+ virtual const views::Widget* GetWidget() const OVERRIDE;
+
+ // aura::DesktopObserver overrides:
+ virtual void OnActiveWindowChanged(aura::Window* active) OVERRIDE;
+
+ // Initializes the window.
+ void Init();
+
+ // Shows/hides the window.
+ void SetVisible(bool visible, bool animate);
+
+ bool is_visible() const {
+ return is_visible_;
+ }
+
+ // Current visible app list window.
+ static AppListWindow* instance_;
+
+ views::Widget* widget_;
+ DOMView* contents_;
+ bool is_visible_;
+
+ DISALLOW_COPY_AND_ASSIGN(AppListWindow);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_WINDOW_H_
« no previous file with comments | « no previous file | chrome/browser/ui/views/aura/app_list_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698