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

Unified Diff: apps/shell/browser/shell_desktop_controller.h

Issue 412713002: Move apps/shell to extensions/shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 40% Created 6 years, 5 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 | « apps/shell/browser/shell_content_browser_client.cc ('k') | apps/shell/browser/shell_desktop_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/shell/browser/shell_desktop_controller.h
diff --git a/apps/shell/browser/shell_desktop_controller.h b/apps/shell/browser/shell_desktop_controller.h
deleted file mode 100644
index d0a5542774055c26280e519804bbb143c3df1e5d..0000000000000000000000000000000000000000
--- a/apps/shell/browser/shell_desktop_controller.h
+++ /dev/null
@@ -1,149 +0,0 @@
-// Copyright 2014 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 APPS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_
-#define APPS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
-#include "ui/aura/client/window_tree_client.h"
-#include "ui/aura/window_tree_host_observer.h"
-
-#if defined(OS_CHROMEOS)
-#include "ui/display/chromeos/display_configurator.h"
-#endif
-
-namespace aura {
-class TestScreen;
-class Window;
-class WindowTreeHost;
-namespace client {
-class DefaultCaptureClient;
-class FocusClient;
-}
-}
-
-namespace content {
-class BrowserContext;
-}
-
-namespace gfx {
-class Size;
-}
-
-#if defined(OS_CHROMEOS)
-namespace ui {
-class UserActivityPowerManagerNotifier;
-}
-#endif
-
-namespace wm {
-class CompoundEventFilter;
-class CursorManager;
-class FocusRules;
-class InputMethodEventFilter;
-class UserActivityDetector;
-}
-
-namespace apps {
-
-class ShellAppWindow;
-class ShellAppWindowController;
-
-// Handles desktop-related tasks for app_shell.
-class ShellDesktopController : public aura::client::WindowTreeClient,
- public aura::WindowTreeHostObserver
-#if defined(OS_CHROMEOS)
- ,
- public ui::DisplayConfigurator::Observer
-#endif
- {
- public:
- ShellDesktopController();
- virtual ~ShellDesktopController();
-
- // Returns the single instance of the desktop. (Stateless functions like
- // ShellAppWindowCreateFunction need to be able to access the desktop, so
- // we need a singleton somewhere).
- static ShellDesktopController* instance();
-
- aura::WindowTreeHost* host() { return host_.get(); }
-
- // Creates the window that hosts the app.
- void CreateRootWindow();
-
- // Sets the controller to create/close the app windows. Takes the ownership of
- // |app_window_controller|.
- void SetAppWindowController(ShellAppWindowController* app_window_controller);
-
- // Creates a new app window and adds it to the desktop. The desktop maintains
- // ownership of the window.
- ShellAppWindow* CreateAppWindow(content::BrowserContext* context);
-
- // Closes and destroys the app windows.
- void CloseAppWindows();
-
- // Overridden from aura::client::WindowTreeClient:
- virtual aura::Window* GetDefaultParent(aura::Window* context,
- aura::Window* window,
- const gfx::Rect& bounds) OVERRIDE;
-
-#if defined(OS_CHROMEOS)
- // ui::DisplayConfigurator::Observer overrides.
- virtual void OnDisplayModeChanged(const std::vector<
- ui::DisplayConfigurator::DisplayState>& displays) OVERRIDE;
-#endif
-
- // aura::WindowTreeHostObserver overrides:
- virtual void OnHostCloseRequested(const aura::WindowTreeHost* host) OVERRIDE;
-
- protected:
- // Creates and sets the aura clients and window manager stuff. Subclass may
- // initialize different sets of the clients.
- virtual void InitWindowManager();
-
- // Creates a focus rule that is to be used in the InitWindowManager.
- virtual wm::FocusRules* CreateFocusRules();
-
- private:
- // Closes and destroys the root window hosting the app.
- void DestroyRootWindow();
-
- // Returns the dimensions (in pixels) of the primary display, or an empty size
- // if the dimensions can't be determined or no display is connected.
- gfx::Size GetPrimaryDisplaySize();
-
-#if defined(OS_CHROMEOS)
- scoped_ptr<ui::DisplayConfigurator> display_configurator_;
-#endif
-
- scoped_ptr<aura::TestScreen> test_screen_;
-
- scoped_ptr<aura::WindowTreeHost> host_;
-
- scoped_ptr<wm::CompoundEventFilter> root_window_event_filter_;
-
- scoped_ptr<aura::client::DefaultCaptureClient> capture_client_;
-
- scoped_ptr<wm::InputMethodEventFilter> input_method_filter_;
-
- scoped_ptr<aura::client::FocusClient> focus_client_;
-
- scoped_ptr<wm::CursorManager> cursor_manager_;
-
- scoped_ptr<wm::UserActivityDetector> user_activity_detector_;
-#if defined(OS_CHROMEOS)
- scoped_ptr<ui::UserActivityPowerManagerNotifier> user_activity_notifier_;
-#endif
-
- // The desktop supports a single app window.
- scoped_ptr<ShellAppWindowController> app_window_controller_;
-
- DISALLOW_COPY_AND_ASSIGN(ShellDesktopController);
-};
-
-} // namespace apps
-
-#endif // APPS_SHELL_BROWSER_SHELL_DESKTOP_CONTROLLER_H_
« no previous file with comments | « apps/shell/browser/shell_content_browser_client.cc ('k') | apps/shell/browser/shell_desktop_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698