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

Unified Diff: views/widget/widget.h

Issue 6976040: Revert 86914 - Move a bunch of functions from Window onto Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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 | « views/widget/native_widget_win.cc ('k') | views/widget/widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/widget.h
===================================================================
--- views/widget/widget.h (revision 86938)
+++ views/widget/widget.h (working copy)
@@ -16,16 +16,6 @@
#include "views/focus/focus_manager.h"
#include "views/widget/native_widget_delegate.h"
-#if defined(OS_WIN)
-// Windows headers define macros for these function names which screw with us.
-#if defined(IsMaximized)
-#undef IsMaximized
-#endif
-#if defined(IsMinimized)
-#undef IsMinimized
-#endif
-#endif
-
namespace gfx {
class Canvas;
class Path;
@@ -230,37 +220,18 @@
void CloseNow();
// Shows or hides the widget, without changing activation state.
- virtual void Show();
+ void Show();
void Hide();
- // Activates the widget, assuming it already exists and is visible.
- void Activate();
-
- // Deactivates the widget, making the next window in the Z order the active
- // window.
- void Deactivate();
-
- // Returns whether the Widget is the currently active window.
- virtual bool IsActive() const;
-
- // Sets the widget to be on top of all other widgets in the windowing system.
- void SetAlwaysOnTop(bool on_top);
-
- // Maximizes/minimizes/restores the window.
- void Maximize();
- void Minimize();
- void Restore();
-
- // Whether or not the window is maximized or minimized.
- virtual bool IsMaximized() const;
- bool IsMinimized() const;
-
// Sets the opacity of the widget. This may allow widgets behind the widget
// in the Z-order to become visible, depending on the capabilities of the
// underlying windowing system. Note that the caller must then schedule a
// repaint to allow this change to take effect.
void SetOpacity(unsigned char opacity);
+ // Sets the widget to be on top of all other widgets in the windowing system.
+ void SetAlwaysOnTop(bool on_top);
+
// Returns the View at the root of the View hierarchy contained by this
// Widget.
View* GetRootView();
@@ -276,8 +247,11 @@
bool is_secondary_widget() const { return is_secondary_widget_; }
// Returns whether the Widget is visible to the user.
- virtual bool IsVisible() const;
+ bool IsVisible() const;
+ // Returns whether the Widget is the currently active window.
+ bool IsActive() const;
+
// Returns whether the Widget is customized for accessibility.
bool IsAccessibleWidget() const;
« no previous file with comments | « views/widget/native_widget_win.cc ('k') | views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698