OLD | NEW |
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 CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlapp.h> | 9 #include <atlapp.h> |
10 #include <atlcrack.h> | 10 #include <atlcrack.h> |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // CWindowImpl | 145 // CWindowImpl |
146 BEGIN_MSG_MAP(OmniboxViewWin) | 146 BEGIN_MSG_MAP(OmniboxViewWin) |
147 MSG_WM_CHAR(OnChar) | 147 MSG_WM_CHAR(OnChar) |
148 MSG_WM_CONTEXTMENU(OnContextMenu) | 148 MSG_WM_CONTEXTMENU(OnContextMenu) |
149 MSG_WM_COPY(OnCopy) | 149 MSG_WM_COPY(OnCopy) |
150 MSG_WM_CREATE(OnCreate) | 150 MSG_WM_CREATE(OnCreate) |
151 MSG_WM_CUT(OnCut) | 151 MSG_WM_CUT(OnCut) |
152 MESSAGE_HANDLER_EX(WM_GETOBJECT, OnGetObject) | 152 MESSAGE_HANDLER_EX(WM_GETOBJECT, OnGetObject) |
153 MESSAGE_HANDLER_EX(WM_IME_COMPOSITION, OnImeComposition) | 153 MESSAGE_HANDLER_EX(WM_IME_COMPOSITION, OnImeComposition) |
154 MESSAGE_HANDLER_EX(WM_IME_NOTIFY, OnImeNotify) | 154 MESSAGE_HANDLER_EX(WM_IME_NOTIFY, OnImeNotify) |
155 MESSAGE_HANDLER_EX(WM_POINTERDOWN, OnPointerDown) | 155 MESSAGE_HANDLER_EX(WM_TOUCH, OnTouchEvent) |
156 MESSAGE_HANDLER_EX(WM_POINTERUP, OnPointerUp) | |
157 MSG_WM_KEYDOWN(OnKeyDown) | 156 MSG_WM_KEYDOWN(OnKeyDown) |
158 MSG_WM_KEYUP(OnKeyUp) | 157 MSG_WM_KEYUP(OnKeyUp) |
159 MSG_WM_KILLFOCUS(OnKillFocus) | 158 MSG_WM_KILLFOCUS(OnKillFocus) |
160 MSG_WM_LBUTTONDBLCLK(OnLButtonDblClk) | 159 MSG_WM_LBUTTONDBLCLK(OnLButtonDblClk) |
161 MSG_WM_LBUTTONDOWN(OnLButtonDown) | 160 MSG_WM_LBUTTONDOWN(OnLButtonDown) |
162 MSG_WM_LBUTTONUP(OnLButtonUp) | 161 MSG_WM_LBUTTONUP(OnLButtonUp) |
163 MSG_WM_MBUTTONDBLCLK(OnMButtonDblClk) | 162 MSG_WM_MBUTTONDBLCLK(OnMButtonDblClk) |
164 MSG_WM_MBUTTONDOWN(OnMButtonDown) | 163 MSG_WM_MBUTTONDOWN(OnMButtonDown) |
165 MSG_WM_MBUTTONUP(OnMButtonUp) | 164 MSG_WM_MBUTTONUP(OnMButtonUp) |
166 MSG_WM_MOUSEACTIVATE(OnMouseActivate) | 165 MSG_WM_MOUSEACTIVATE(OnMouseActivate) |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 | 243 |
245 // Message handlers | 244 // Message handlers |
246 void OnChar(TCHAR ch, UINT repeat_count, UINT flags); | 245 void OnChar(TCHAR ch, UINT repeat_count, UINT flags); |
247 void OnContextMenu(HWND window, const CPoint& point); | 246 void OnContextMenu(HWND window, const CPoint& point); |
248 void OnCopy(); | 247 void OnCopy(); |
249 LRESULT OnCreate(const CREATESTRUCTW* create_struct); | 248 LRESULT OnCreate(const CREATESTRUCTW* create_struct); |
250 void OnCut(); | 249 void OnCut(); |
251 LRESULT OnGetObject(UINT message, WPARAM wparam, LPARAM lparam); | 250 LRESULT OnGetObject(UINT message, WPARAM wparam, LPARAM lparam); |
252 LRESULT OnImeComposition(UINT message, WPARAM wparam, LPARAM lparam); | 251 LRESULT OnImeComposition(UINT message, WPARAM wparam, LPARAM lparam); |
253 LRESULT OnImeNotify(UINT message, WPARAM wparam, LPARAM lparam); | 252 LRESULT OnImeNotify(UINT message, WPARAM wparam, LPARAM lparam); |
254 LRESULT OnPointerDown(UINT message, WPARAM wparam, LPARAM lparam); | 253 LRESULT OnTouchEvent(UINT message, WPARAM wparam, LPARAM lparam); |
255 LRESULT OnPointerUp(UINT message, WPARAM wparam, LPARAM lparam); | |
256 void OnKeyDown(TCHAR key, UINT repeat_count, UINT flags); | 254 void OnKeyDown(TCHAR key, UINT repeat_count, UINT flags); |
257 void OnKeyUp(TCHAR key, UINT repeat_count, UINT flags); | 255 void OnKeyUp(TCHAR key, UINT repeat_count, UINT flags); |
258 void OnKillFocus(HWND focus_wnd); | 256 void OnKillFocus(HWND focus_wnd); |
259 void OnLButtonDblClk(UINT keys, const CPoint& point); | 257 void OnLButtonDblClk(UINT keys, const CPoint& point); |
260 void OnLButtonDown(UINT keys, const CPoint& point); | 258 void OnLButtonDown(UINT keys, const CPoint& point); |
261 void OnLButtonUp(UINT keys, const CPoint& point); | 259 void OnLButtonUp(UINT keys, const CPoint& point); |
262 void OnMButtonDblClk(UINT keys, const CPoint& point); | 260 void OnMButtonDblClk(UINT keys, const CPoint& point); |
263 void OnMButtonDown(UINT keys, const CPoint& point); | 261 void OnMButtonDown(UINT keys, const CPoint& point); |
264 void OnMButtonUp(UINT keys, const CPoint& point); | 262 void OnMButtonUp(UINT keys, const CPoint& point); |
265 LRESULT OnMouseActivate(HWND window, UINT hit_test, UINT mouse_message); | 263 LRESULT OnMouseActivate(HWND window, UINT hit_test, UINT mouse_message); |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 // Instance of accessibility information and handling. | 506 // Instance of accessibility information and handling. |
509 mutable base::win::ScopedComPtr<IAccessible> autocomplete_accessibility_; | 507 mutable base::win::ScopedComPtr<IAccessible> autocomplete_accessibility_; |
510 | 508 |
511 // The native view host. | 509 // The native view host. |
512 views::NativeViewHost* native_view_host_; | 510 views::NativeViewHost* native_view_host_; |
513 | 511 |
514 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); | 512 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); |
515 }; | 513 }; |
516 | 514 |
517 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ | 515 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ |
OLD | NEW |