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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 void HandleExternalMsg(UINT msg, UINT flags, const CPoint& screen_point); | 143 void HandleExternalMsg(UINT msg, UINT flags, const CPoint& screen_point); |
144 | 144 |
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 MSG_WM_DESTROY(OnDestroy) |
153 MESSAGE_HANDLER_EX(WM_IME_COMPOSITION, OnImeComposition) | 154 MESSAGE_HANDLER_EX(WM_IME_COMPOSITION, OnImeComposition) |
154 MESSAGE_HANDLER_EX(WM_IME_NOTIFY, OnImeNotify) | 155 MESSAGE_HANDLER_EX(WM_IME_NOTIFY, OnImeNotify) |
| 156 MESSAGE_HANDLER_EX(WM_TOUCH, OnTouchEvent) |
155 MESSAGE_HANDLER_EX(WM_POINTERDOWN, OnPointerDown) | 157 MESSAGE_HANDLER_EX(WM_POINTERDOWN, OnPointerDown) |
156 MESSAGE_HANDLER_EX(WM_POINTERUP, OnPointerUp) | 158 MESSAGE_HANDLER_EX(WM_POINTERUP, OnPointerUp) |
157 MSG_WM_KEYDOWN(OnKeyDown) | 159 MSG_WM_KEYDOWN(OnKeyDown) |
158 MSG_WM_KEYUP(OnKeyUp) | 160 MSG_WM_KEYUP(OnKeyUp) |
159 MSG_WM_KILLFOCUS(OnKillFocus) | 161 MSG_WM_KILLFOCUS(OnKillFocus) |
160 MSG_WM_LBUTTONDBLCLK(OnLButtonDblClk) | 162 MSG_WM_LBUTTONDBLCLK(OnLButtonDblClk) |
161 MSG_WM_LBUTTONDOWN(OnLButtonDown) | 163 MSG_WM_LBUTTONDOWN(OnLButtonDown) |
162 MSG_WM_LBUTTONUP(OnLButtonUp) | 164 MSG_WM_LBUTTONUP(OnLButtonUp) |
163 MSG_WM_MBUTTONDBLCLK(OnMButtonDblClk) | 165 MSG_WM_MBUTTONDBLCLK(OnMButtonDblClk) |
164 MSG_WM_MBUTTONDOWN(OnMButtonDown) | 166 MSG_WM_MBUTTONDOWN(OnMButtonDown) |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 // Returns true if |edit_text| starting at |current_pos| is "://". | 244 // Returns true if |edit_text| starting at |current_pos| is "://". |
243 static bool SchemeEnd(LPTSTR edit_text, int current_pos, int length); | 245 static bool SchemeEnd(LPTSTR edit_text, int current_pos, int length); |
244 | 246 |
245 // Message handlers | 247 // Message handlers |
246 void OnChar(TCHAR ch, UINT repeat_count, UINT flags); | 248 void OnChar(TCHAR ch, UINT repeat_count, UINT flags); |
247 void OnContextMenu(HWND window, const CPoint& point); | 249 void OnContextMenu(HWND window, const CPoint& point); |
248 void OnCopy(); | 250 void OnCopy(); |
249 LRESULT OnCreate(const CREATESTRUCTW* create_struct); | 251 LRESULT OnCreate(const CREATESTRUCTW* create_struct); |
250 void OnCut(); | 252 void OnCut(); |
251 LRESULT OnGetObject(UINT message, WPARAM wparam, LPARAM lparam); | 253 LRESULT OnGetObject(UINT message, WPARAM wparam, LPARAM lparam); |
| 254 void OnDestroy(); |
252 LRESULT OnImeComposition(UINT message, WPARAM wparam, LPARAM lparam); | 255 LRESULT OnImeComposition(UINT message, WPARAM wparam, LPARAM lparam); |
253 LRESULT OnImeNotify(UINT message, WPARAM wparam, LPARAM lparam); | 256 LRESULT OnImeNotify(UINT message, WPARAM wparam, LPARAM lparam); |
| 257 LRESULT OnTouchEvent(UINT message, WPARAM wparam, LPARAM lparam); |
254 LRESULT OnPointerDown(UINT message, WPARAM wparam, LPARAM lparam); | 258 LRESULT OnPointerDown(UINT message, WPARAM wparam, LPARAM lparam); |
255 LRESULT OnPointerUp(UINT message, WPARAM wparam, LPARAM lparam); | 259 LRESULT OnPointerUp(UINT message, WPARAM wparam, LPARAM lparam); |
256 void OnKeyDown(TCHAR key, UINT repeat_count, UINT flags); | 260 void OnKeyDown(TCHAR key, UINT repeat_count, UINT flags); |
257 void OnKeyUp(TCHAR key, UINT repeat_count, UINT flags); | 261 void OnKeyUp(TCHAR key, UINT repeat_count, UINT flags); |
258 void OnKillFocus(HWND focus_wnd); | 262 void OnKillFocus(HWND focus_wnd); |
259 void OnLButtonDblClk(UINT keys, const CPoint& point); | 263 void OnLButtonDblClk(UINT keys, const CPoint& point); |
260 void OnLButtonDown(UINT keys, const CPoint& point); | 264 void OnLButtonDown(UINT keys, const CPoint& point); |
261 void OnLButtonUp(UINT keys, const CPoint& point); | 265 void OnLButtonUp(UINT keys, const CPoint& point); |
262 void OnMButtonDblClk(UINT keys, const CPoint& point); | 266 void OnMButtonDblClk(UINT keys, const CPoint& point); |
263 void OnMButtonDown(UINT keys, const CPoint& point); | 267 void OnMButtonDown(UINT keys, const CPoint& point); |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 // Instance of accessibility information and handling. | 512 // Instance of accessibility information and handling. |
509 mutable base::win::ScopedComPtr<IAccessible> autocomplete_accessibility_; | 513 mutable base::win::ScopedComPtr<IAccessible> autocomplete_accessibility_; |
510 | 514 |
511 // The native view host. | 515 // The native view host. |
512 views::NativeViewHost* native_view_host_; | 516 views::NativeViewHost* native_view_host_; |
513 | 517 |
514 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); | 518 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); |
515 }; | 519 }; |
516 | 520 |
517 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ | 521 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ |
OLD | NEW |