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

Unified Diff: ui/aura/desktop_host.h

Issue 8771015: Rename Desktop->RootWindow. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/desktop.cc ('k') | ui/aura/desktop_host_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/desktop_host.h
===================================================================
--- ui/aura/desktop_host.h (revision 113260)
+++ ui/aura/desktop_host.h (working copy)
@@ -1,71 +0,0 @@
-// 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 UI_AURA_DESKTOP_HOST_H_
-#define UI_AURA_DESKTOP_HOST_H_
-#pragma once
-
-#include "base/message_loop.h"
-#include "ui/aura/cursor.h"
-#include "ui/gfx/native_widget_types.h"
-
-namespace gfx {
-class Point;
-class Rect;
-class Size;
-}
-
-namespace aura {
-
-class Desktop;
-
-// DesktopHost bridges between a native window and the embedded Desktop. It
-// provides the accelerated widget and maps events from the native os to aura.
-class DesktopHost : public MessageLoop::Dispatcher {
- public:
- virtual ~DesktopHost() {}
-
- // Creates a new DesktopHost. The caller owns the returned value.
- static DesktopHost* Create(const gfx::Rect& bounds);
-
- // Returns the actual size of the screen.
- // (gfx::Screen only reports on the virtual desktop exposed by Aura.)
- static gfx::Size GetNativeScreenSize();
-
- // Sets the Desktop this DesktopHost is hosting. DesktopHost does not own the
- // Desktop.
- virtual void SetDesktop(Desktop* desktop) = 0;
-
- // Returns the accelerated widget.
- virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0;
-
- // Shows the DesktopHost.
- virtual void Show() = 0;
-
- // Toggles the host's full screen state.
- virtual void ToggleFullScreen() = 0;
-
- // Gets/Sets the size of the DesktopHost.
- virtual gfx::Size GetSize() const = 0;
- virtual void SetSize(const gfx::Size& size) = 0;
-
- // Returns the location of the desktop on native screen.
- virtual gfx::Point GetLocationOnNativeScreen() const = 0;
-
- // Sets the currently displayed cursor.
- virtual void SetCursor(gfx::NativeCursor cursor) = 0;
-
- // Queries the mouse's current position relative to the host window.
- // The position is constrained within the host window.
- // You should probably call Desktop::last_mouse_location() instead; this
- // method can be expensive.
- virtual gfx::Point QueryMouseLocation() = 0;
-
- // Posts |native_event| to the platform's event queue.
- virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0;
-};
-
-} // namespace aura
-
-#endif // UI_AURA_DESKTOP_HOST_H_
« no previous file with comments | « ui/aura/desktop.cc ('k') | ui/aura/desktop_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698