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

Side by Side Diff: aura/desktop_host.h

Issue 7886042: Move Aura to UI subdir. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef AURA_DESKTOP_HOST_H_
6 #define AURA_DESKTOP_HOST_H_
7 #pragma once
8
9 #include "base/message_loop.h"
10 #include "ui/gfx/native_widget_types.h"
11
12 namespace gfx {
13 class Rect;
14 class Size;
15 }
16
17 namespace aura {
18
19 class Desktop;
20
21 // DesktopHost bridges between a native window and the embedded Desktop. It
22 // provides the accelerated widget and maps events from the native os to aura.
23 class DesktopHost : public MessageLoop::Dispatcher {
24 public:
25 virtual ~DesktopHost() {}
26
27 // Creates a new DesktopHost. The caller owns the returned value.
28 static DesktopHost* Create(const gfx::Rect& bounds);
29
30 // Sets the Desktop this DesktopHost is hosting. DesktopHost does not own the
31 // Desktop.
32 virtual void SetDesktop(Desktop* desktop) = 0;
33
34 // Returns the accelerated widget.
35 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0;
36
37 // Shows the DesktopHost.
38 virtual void Show() = 0;
39
40 // Gets/Sets the size of the DesktopHost.
41 virtual gfx::Size GetSize() = 0;
42 virtual void SetSize(const gfx::Size& size) = 0;
43 };
44
45 } // namespace aura
46
47 #endif // AURA_DESKTOP_HOST_H_
OLDNEW
« no previous file with comments | « aura/desktop.cc ('k') | aura/desktop_host_linux.cc » ('j') | ui/aura/aura.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698