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

Unified Diff: views/window/native_window_win.h

Issue 7129022: Move last of event handlers down to NativeWidgetWin/Gtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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/window/native_window_gtk.cc ('k') | views/window/native_window_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/window/native_window_win.h
===================================================================
--- views/window/native_window_win.h (revision 88529)
+++ views/window/native_window_win.h (working copy)
@@ -8,14 +8,7 @@
#include "views/widget/native_widget_win.h"
#include "views/window/native_window.h"
-#include "views/window/window.h"
-namespace gfx {
-class Font;
-class Point;
-class Size;
-};
-
namespace views {
namespace internal {
class NativeWindowDelegate;
@@ -29,9 +22,6 @@
} // namespace internal
-class Client;
-class WindowDelegate;
-
////////////////////////////////////////////////////////////////////////////////
//
// NativeWindowWin
@@ -47,9 +37,6 @@
explicit NativeWindowWin(internal::NativeWindowDelegate* delegate);
virtual ~NativeWindowWin();
- // Returns the system set window title font.
- static gfx::Font GetWindowTitleFont();
-
// Overridden from NativeWindow:
virtual Window* GetWindow() OVERRIDE;
virtual const Window* GetWindow() const OVERRIDE;
@@ -57,62 +44,14 @@
protected:
friend Window;
- // Overridden from NativeWidgetWin:
- virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE;
- virtual void OnDestroy() OVERRIDE;
- virtual LRESULT OnMouseRange(UINT message,
- WPARAM w_param,
- LPARAM l_param) OVERRIDE;
- LRESULT OnNCCalcSize(BOOL mode, LPARAM l_param); // Don't override.
- virtual void OnNCPaint(HRGN rgn) OVERRIDE;
- virtual void OnWindowPosChanging(WINDOWPOS* window_pos) OVERRIDE;
-
// Overridden from NativeWindow:
virtual NativeWidget* AsNativeWidget() OVERRIDE;
virtual const NativeWidget* AsNativeWidget() const OVERRIDE;
- virtual void BecomeModal() OVERRIDE;
private:
- // If necessary, enables all ancestors.
- void RestoreEnabledIfNecessary();
-
- // Calculate the appropriate window styles for this window.
- DWORD CalculateWindowStyle();
- DWORD CalculateWindowExStyle();
-
- // Stops ignoring SetWindowPos() requests (see below).
- void StopIgnoringPosChanges() { ignore_window_pos_changes_ = false; }
-
- // Update accessibility information via our WindowDelegate.
- void UpdateAccessibleName(std::wstring& accessible_name);
- void UpdateAccessibleRole();
- void UpdateAccessibleState();
-
// A delegate implementation that handles events received here.
internal::NativeWindowDelegate* delegate_;
- // Whether all ancestors have been enabled. This is only used if is_modal_ is
- // true.
- bool restored_enabled_;
-
- // When true, this flag makes us discard incoming SetWindowPos() requests that
- // only change our position/size. (We still allow changes to Z-order,
- // activation, etc.)
- bool ignore_window_pos_changes_;
-
- // The following factory is used to ignore SetWindowPos() calls for short time
- // periods.
- ScopedRunnableMethodFactory<NativeWindowWin> ignore_pos_changes_factory_;
-
- // Set to true when the user presses the right mouse button on the caption
- // area. We need this so we can correctly show the context menu on mouse-up.
- bool is_right_mouse_pressed_on_caption_;
-
- // The last-seen monitor containing us, and its rect and work area. These are
- // used to catch updates to the rect and work area and react accordingly.
- HMONITOR last_monitor_;
- gfx::Rect last_monitor_rect_, last_work_area_;
-
DISALLOW_COPY_AND_ASSIGN(NativeWindowWin);
};
« no previous file with comments | « views/window/native_window_gtk.cc ('k') | views/window/native_window_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698