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

Unified Diff: ui/views/win/hwnd_message_handler.h

Issue 10873046: Move a few more easy things from NWW to HWNDMessageHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | « ui/views/widget/native_widget_win.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/win/hwnd_message_handler.h
===================================================================
--- ui/views/win/hwnd_message_handler.h (revision 153285)
+++ ui/views/win/hwnd_message_handler.h (working copy)
@@ -45,11 +45,36 @@
~HWNDMessageHandler();
void Init(const gfx::Rect& bounds);
+ void InitModalType(ui::ModalType modal_type);
+ void CloseNow();
+
+ gfx::Rect GetWindowBoundsInScreen() const;
+ gfx::Rect GetClientAreaBoundsInScreen() const;
gfx::Rect GetRestoredBounds() const;
void GetWindowPlacement(gfx::Rect* bounds,
ui::WindowShowState* show_state) const;
+ void SetBounds(const gfx::Rect& bounds);
+ void SetSize(const gfx::Size& size);
+
+ void SetRegion(HRGN rgn);
+
+ void StackAbove(HWND other_hwnd);
+ void StackAtTop();
+
+ void ShowMaximizedWithBounds(const gfx::Rect& bounds);
+ void Hide();
+
+ void Maximize();
+ void Minimize();
+ void Restore();
+
+ void Activate();
+ void Deactivate();
+
+ void SetAlwaysOnTop(bool on_top);
+
bool IsVisible() const;
bool IsActive() const;
bool IsMinimized() const;
@@ -58,12 +83,19 @@
// Tells the HWND its client area has changed.
void SendFrameChanged();
+ void FlashFrame(bool flash);
+
+ void ClearNativeFocus();
+ void FocusHWND(HWND hwnd);
+
void SetCapture();
void ReleaseCapture();
bool HasCapture() const;
FullscreenHandler* fullscreen_handler() { return fullscreen_handler_.get(); }
+ void SetVisibilityChangedAnimationsEnabled(bool enabled);
+
InputMethod* CreateInputMethod();
// Message Handlers.
@@ -141,6 +173,9 @@
// Overridden from internal::InputMethodDelegate
virtual void DispatchKeyEventPostIME(const ui::KeyEvent& key) OVERRIDE;
+ // Executes the specified SC_command.
+ void ExecuteSystemMenuCommand(int command);
+
// Start tracking all mouse events so that this window gets sent mouse leave
// messages too.
void TrackMouseEvents(DWORD mouse_tracking_flags);
@@ -160,6 +195,9 @@
WPARAM w_param,
LPARAM l_param);
+ // Notifies any owned windows that we're closing.
+ void NotifyOwnedWindowsParentClosing();
+
// Lock or unlock the window from being able to redraw itself in response to
// updates to its invalid region.
class ScopedRedrawLock;
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698