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

Unified Diff: chrome/views/widget.h

Issue 27317: Support DWM switching.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/views/views.vcproj ('k') | chrome/views/widget_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/widget.h
===================================================================
--- chrome/views/widget.h (revision 10688)
+++ chrome/views/widget.h (working copy)
@@ -16,9 +16,10 @@
namespace views {
+class Accelerator;
class RootView;
class TooltipManager;
-class Accelerator;
+class Window;
////////////////////////////////////////////////////////////////////////////////
//
@@ -77,6 +78,11 @@
// no accelerator associated with a given id, which is a common condition.
virtual bool GetAccelerator(int cmd_id,
Accelerator* accelerator) = 0;
+
+ // Returns the Widget as a Window, if such a conversion is possible, or NULL
+ // if it is not.
+ virtual Window* AsWindow() { return NULL; }
+ virtual const Window* AsWindow() const { return NULL; }
};
} // namespace views
« no previous file with comments | « chrome/views/views.vcproj ('k') | chrome/views/widget_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698