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

Unified Diff: aura/desktop_host_win.h

Issue 7534002: Shell of implementation for embedded windows. At this point this is (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback Created 9 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 | « aura/desktop_host.h ('k') | aura/desktop_host_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: aura/desktop_host_win.h
diff --git a/aura/desktop_host_win.h b/aura/desktop_host_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..9513a37676d32e57d34c7c56307a94c088c8aa87
--- /dev/null
+++ b/aura/desktop_host_win.h
@@ -0,0 +1,42 @@
+// 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 AURA_DESKTOP_HOST_WIN_H_
+#define AURA_DESKTOP_HOST_WIN_H_
+#pragma once
+
+#include "aura/desktop_host.h"
+#include "base/compiler_specific.h"
+#include "ui/base/win/window_impl.h"
+
+namespace aura {
+
+class DesktopHostWin : public DesktopHost, public ui::WindowImpl {
+ public:
+ DesktopHostWin(const gfx::Rect& bounds);
+ virtual ~DesktopHostWin();
+
+ // DesktopHost:
+ virtual void SetDesktop(Desktop* desktop) OVERRIDE;
+ virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
+ virtual void Show() OVERRIDE;
+ virtual gfx::Size GetSize() OVERRIDE;
+
+ private:
+ BEGIN_MSG_MAP_EX(DesktopHostWin)
+ MSG_WM_CLOSE(OnClose)
+ MSG_WM_PAINT(OnPaint)
+ END_MSG_MAP()
+
+ void OnClose();
+ void OnPaint(HDC dc);
+
+ Desktop* desktop_;
+
+ DISALLOW_COPY_AND_ASSIGN(DesktopHostWin);
+};
+
+} // namespace aura
+
+#endif // AURA_DESKTOP_HOST_WIN_H_
« no previous file with comments | « aura/desktop_host.h ('k') | aura/desktop_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698