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

Side by Side Diff: ui/aura/root_window_host_win.h

Issue 146833020: Remove some uses of ATL in UI code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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
« no previous file with comments | « tools/memory_watcher/memory_watcher.gyp ('k') | ui/aura/root_window_host_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_AURA_ROOT_WINDOW_HOST_WIN_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_WIN_H_
6 #define UI_AURA_ROOT_WINDOW_HOST_WIN_H_ 6 #define UI_AURA_ROOT_WINDOW_HOST_WIN_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/aura/aura_export.h" 9 #include "ui/aura/aura_export.h"
10 #include "ui/aura/window_tree_host.h" 10 #include "ui/aura/window_tree_host.h"
(...skipping 22 matching lines...) Expand all
33 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; 33 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE;
34 virtual bool ConfineCursorToRootWindow() OVERRIDE; 34 virtual bool ConfineCursorToRootWindow() OVERRIDE;
35 virtual void UnConfineCursor() OVERRIDE; 35 virtual void UnConfineCursor() OVERRIDE;
36 virtual void OnCursorVisibilityChanged(bool show) OVERRIDE; 36 virtual void OnCursorVisibilityChanged(bool show) OVERRIDE;
37 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; 37 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE;
38 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; 38 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE;
39 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; 39 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
40 virtual void PrepareForShutdown() OVERRIDE; 40 virtual void PrepareForShutdown() OVERRIDE;
41 41
42 private: 42 private:
43 BEGIN_MSG_MAP_EX(WindowTreeHostWin) 43 CR_BEGIN_MSG_MAP_EX(WindowTreeHostWin)
44 // Range handlers must go first! 44 // Range handlers must go first!
45 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) 45 CR_MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange)
46 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange) 46 CR_MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE,
47 WM_NCXBUTTONDBLCLK,
48 OnMouseRange)
47 49
48 // Mouse capture events. 50 // Mouse capture events.
49 MESSAGE_HANDLER_EX(WM_CAPTURECHANGED, OnCaptureChanged) 51 CR_MESSAGE_HANDLER_EX(WM_CAPTURECHANGED, OnCaptureChanged)
50 52
51 // Key events. 53 // Key events.
52 MESSAGE_HANDLER_EX(WM_KEYDOWN, OnKeyEvent) 54 CR_MESSAGE_HANDLER_EX(WM_KEYDOWN, OnKeyEvent)
53 MESSAGE_HANDLER_EX(WM_KEYUP, OnKeyEvent) 55 CR_MESSAGE_HANDLER_EX(WM_KEYUP, OnKeyEvent)
54 MESSAGE_HANDLER_EX(WM_SYSKEYDOWN, OnKeyEvent) 56 CR_MESSAGE_HANDLER_EX(WM_SYSKEYDOWN, OnKeyEvent)
55 MESSAGE_HANDLER_EX(WM_SYSKEYUP, OnKeyEvent) 57 CR_MESSAGE_HANDLER_EX(WM_SYSKEYUP, OnKeyEvent)
56 MESSAGE_HANDLER_EX(WM_CHAR, OnKeyEvent) 58 CR_MESSAGE_HANDLER_EX(WM_CHAR, OnKeyEvent)
57 MESSAGE_HANDLER_EX(WM_SYSCHAR, OnKeyEvent) 59 CR_MESSAGE_HANDLER_EX(WM_SYSCHAR, OnKeyEvent)
58 MESSAGE_HANDLER_EX(WM_IME_CHAR, OnKeyEvent) 60 CR_MESSAGE_HANDLER_EX(WM_IME_CHAR, OnKeyEvent)
59 MESSAGE_HANDLER_EX(WM_NCACTIVATE, OnNCActivate) 61 CR_MESSAGE_HANDLER_EX(WM_NCACTIVATE, OnNCActivate)
60 62
61 MSG_WM_CLOSE(OnClose) 63 CR_MSG_WM_CLOSE(OnClose)
62 MSG_WM_MOVE(OnMove) 64 CR_MSG_WM_MOVE(OnMove)
63 MSG_WM_PAINT(OnPaint) 65 CR_MSG_WM_PAINT(OnPaint)
64 MSG_WM_SIZE(OnSize) 66 CR_MSG_WM_SIZE(OnSize)
65 END_MSG_MAP() 67 CR_END_MSG_MAP()
66 68
67 void OnClose(); 69 void OnClose();
68 LRESULT OnKeyEvent(UINT message, WPARAM w_param, LPARAM l_param); 70 LRESULT OnKeyEvent(UINT message, WPARAM w_param, LPARAM l_param);
69 LRESULT OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param); 71 LRESULT OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param);
70 LRESULT OnCaptureChanged(UINT message, WPARAM w_param, LPARAM l_param); 72 LRESULT OnCaptureChanged(UINT message, WPARAM w_param, LPARAM l_param);
71 LRESULT OnNCActivate(UINT message, WPARAM w_param, LPARAM l_param); 73 LRESULT OnNCActivate(UINT message, WPARAM w_param, LPARAM l_param);
72 void OnMove(const CPoint& point); 74 void OnMove(const gfx::Point& point);
73 void OnPaint(HDC dc); 75 void OnPaint(HDC dc);
74 void OnSize(UINT param, const CSize& size); 76 void OnSize(UINT param, const gfx::Size& size);
75 77
76 bool fullscreen_; 78 bool fullscreen_;
77 bool has_capture_; 79 bool has_capture_;
78 RECT saved_window_rect_; 80 RECT saved_window_rect_;
79 DWORD saved_window_style_; 81 DWORD saved_window_style_;
80 DWORD saved_window_ex_style_; 82 DWORD saved_window_ex_style_;
81 83
82 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostWin); 84 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostWin);
83 }; 85 };
84 86
85 namespace test { 87 namespace test {
86 88
87 // Set true to let WindowTreeHostWin use a popup window 89 // Set true to let WindowTreeHostWin use a popup window
88 // with no frame/title so that the window size and test's 90 // with no frame/title so that the window size and test's
89 // expectations matches. 91 // expectations matches.
90 AURA_EXPORT void SetUsePopupAsRootWindowForTest(bool use); 92 AURA_EXPORT void SetUsePopupAsRootWindowForTest(bool use);
91 93
92 } // namespace 94 } // namespace
93 95
94 } // namespace aura 96 } // namespace aura
95 97
96 #endif // UI_AURA_ROOT_WINDOW_HOST_WIN_H_ 98 #endif // UI_AURA_ROOT_WINDOW_HOST_WIN_H_
OLDNEW
« no previous file with comments | « tools/memory_watcher/memory_watcher.gyp ('k') | ui/aura/root_window_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698