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

Side by Side Diff: wm/host/foreign_window_host.h

Issue 11485006: Add window manager component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address more review feedback Created 7 years, 10 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) 2013 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 WM_HOST_FOREIGN_WINDOW_HOST_H_
6 #define WM_HOST_FOREIGN_WINDOW_HOST_H_
7
8 #include "ui/gfx/native_widget_types.h"
9
10 namespace wm {
11 class ForeignWindowHostDelegate;
12
13 class ForeignWindowHost {
14 public:
15 virtual ~ForeignWindowHost() {}
16
17 // Creates a new ForeignWindowHost. The caller owns the returned value.
18 static ForeignWindowHost* Create(gfx::PluginWindowHandle window_handle);
19
20 // Sets the delegate, which is normally done by the foreign window.
21 virtual void SetDelegate(ForeignWindowHostDelegate* delegate) = 0;
22
23 // Get window handle for foreign window.
24 virtual gfx::PluginWindowHandle GetWindowHandle() const = 0;
25
26 // Attempts to close the foreign window.
27 virtual void Close() = 0;
28
29 // Called when foreign window has been destroyed.
30 virtual void OnWindowDestroyed() = 0;
31 };
32
33 } // namespace wm
34
35 #endif // WM_HOST_FOREIGN_WINDOW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698