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

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_view_win.h

Issue 8268003: Hide autocomplete popup when IME candidate window is open (on Windows). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move comment Created 9 years, 2 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 | « no previous file | chrome/browser/ui/views/omnibox/omnibox_view_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlapp.h> 10 #include <atlapp.h>
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 void HandleExternalMsg(UINT msg, UINT flags, const CPoint& screen_point); 179 void HandleExternalMsg(UINT msg, UINT flags, const CPoint& screen_point);
180 180
181 // CWindowImpl 181 // CWindowImpl
182 BEGIN_MSG_MAP(AutocompleteEdit) 182 BEGIN_MSG_MAP(AutocompleteEdit)
183 MSG_WM_CHAR(OnChar) 183 MSG_WM_CHAR(OnChar)
184 MSG_WM_CONTEXTMENU(OnContextMenu) 184 MSG_WM_CONTEXTMENU(OnContextMenu)
185 MSG_WM_COPY(OnCopy) 185 MSG_WM_COPY(OnCopy)
186 MSG_WM_CUT(OnCut) 186 MSG_WM_CUT(OnCut)
187 MESSAGE_HANDLER_EX(WM_GETOBJECT, OnGetObject) 187 MESSAGE_HANDLER_EX(WM_GETOBJECT, OnGetObject)
188 MESSAGE_HANDLER_EX(WM_IME_COMPOSITION, OnImeComposition) 188 MESSAGE_HANDLER_EX(WM_IME_COMPOSITION, OnImeComposition)
189 MESSAGE_HANDLER_EX(WM_IME_NOTIFY, OnImeNotify)
189 MSG_WM_KEYDOWN(OnKeyDown) 190 MSG_WM_KEYDOWN(OnKeyDown)
190 MSG_WM_KEYUP(OnKeyUp) 191 MSG_WM_KEYUP(OnKeyUp)
191 MSG_WM_KILLFOCUS(OnKillFocus) 192 MSG_WM_KILLFOCUS(OnKillFocus)
192 MSG_WM_LBUTTONDBLCLK(OnLButtonDblClk) 193 MSG_WM_LBUTTONDBLCLK(OnLButtonDblClk)
193 MSG_WM_LBUTTONDOWN(OnLButtonDown) 194 MSG_WM_LBUTTONDOWN(OnLButtonDown)
194 MSG_WM_LBUTTONUP(OnLButtonUp) 195 MSG_WM_LBUTTONUP(OnLButtonUp)
195 MSG_WM_MBUTTONDBLCLK(OnMButtonDblClk) 196 MSG_WM_MBUTTONDBLCLK(OnMButtonDblClk)
196 MSG_WM_MBUTTONDOWN(OnMButtonDown) 197 MSG_WM_MBUTTONDOWN(OnMButtonDown)
197 MSG_WM_MBUTTONUP(OnMButtonUp) 198 MSG_WM_MBUTTONUP(OnMButtonUp)
198 MSG_WM_MOUSEACTIVATE(OnMouseActivate) 199 MSG_WM_MOUSEACTIVATE(OnMouseActivate)
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // Returns true if |edit_text| starting at |current_pos| is "://". 278 // Returns true if |edit_text| starting at |current_pos| is "://".
278 static bool SchemeEnd(LPTSTR edit_text, int current_pos, int length); 279 static bool SchemeEnd(LPTSTR edit_text, int current_pos, int length);
279 280
280 // Message handlers 281 // Message handlers
281 void OnChar(TCHAR ch, UINT repeat_count, UINT flags); 282 void OnChar(TCHAR ch, UINT repeat_count, UINT flags);
282 void OnContextMenu(HWND window, const CPoint& point); 283 void OnContextMenu(HWND window, const CPoint& point);
283 void OnCopy(); 284 void OnCopy();
284 void OnCut(); 285 void OnCut();
285 LRESULT OnGetObject(UINT uMsg, WPARAM wparam, LPARAM lparam); 286 LRESULT OnGetObject(UINT uMsg, WPARAM wparam, LPARAM lparam);
286 LRESULT OnImeComposition(UINT message, WPARAM wparam, LPARAM lparam); 287 LRESULT OnImeComposition(UINT message, WPARAM wparam, LPARAM lparam);
288 LRESULT OnImeNotify(UINT message, WPARAM wparam, LPARAM lparam);
287 void OnKeyDown(TCHAR key, UINT repeat_count, UINT flags); 289 void OnKeyDown(TCHAR key, UINT repeat_count, UINT flags);
288 void OnKeyUp(TCHAR key, UINT repeat_count, UINT flags); 290 void OnKeyUp(TCHAR key, UINT repeat_count, UINT flags);
289 void OnKillFocus(HWND focus_wnd); 291 void OnKillFocus(HWND focus_wnd);
290 void OnLButtonDblClk(UINT keys, const CPoint& point); 292 void OnLButtonDblClk(UINT keys, const CPoint& point);
291 void OnLButtonDown(UINT keys, const CPoint& point); 293 void OnLButtonDown(UINT keys, const CPoint& point);
292 void OnLButtonUp(UINT keys, const CPoint& point); 294 void OnLButtonUp(UINT keys, const CPoint& point);
293 void OnMButtonDblClk(UINT keys, const CPoint& point); 295 void OnMButtonDblClk(UINT keys, const CPoint& point);
294 void OnMButtonDown(UINT keys, const CPoint& point); 296 void OnMButtonDown(UINT keys, const CPoint& point);
295 void OnMButtonUp(UINT keys, const CPoint& point); 297 void OnMButtonUp(UINT keys, const CPoint& point);
296 LRESULT OnMouseActivate(HWND window, UINT hit_test, UINT mouse_message); 298 LRESULT OnMouseActivate(HWND window, UINT hit_test, UINT mouse_message);
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 bool in_drag_; 525 bool in_drag_;
524 526
525 // If true indicates we've run a drag and drop session. This is used to 527 // If true indicates we've run a drag and drop session. This is used to
526 // avoid starting two drag and drop sessions if the drag is canceled while 528 // avoid starting two drag and drop sessions if the drag is canceled while
527 // the mouse is still down. 529 // the mouse is still down.
528 bool initiated_drag_; 530 bool initiated_drag_;
529 531
530 // Position of the drop highlight. If this is -1, there is no drop highlight. 532 // Position of the drop highlight. If this is -1, there is no drop highlight.
531 int drop_highlight_position_; 533 int drop_highlight_position_;
532 534
535 // True if the IME candidate window is open.
Peter Kasting 2011/10/25 20:46:49 Nit: Add "When this is true we want to avoid showi
536 bool ime_candidate_window_open_;
537
533 // Security UI-related data. 538 // Security UI-related data.
534 COLORREF background_color_; 539 COLORREF background_color_;
535 ToolbarModel::SecurityLevel security_level_; 540 ToolbarModel::SecurityLevel security_level_;
536 541
537 // This interface is useful for accessing the CRichEditCtrl at a low level. 542 // This interface is useful for accessing the CRichEditCtrl at a low level.
538 mutable ITextDocument* text_object_model_; 543 mutable ITextDocument* text_object_model_;
539 544
540 // This contains the scheme char start and stop indexes that should be 545 // This contains the scheme char start and stop indexes that should be
541 // stricken-out when displaying an insecure scheme. 546 // stricken-out when displaying an insecure scheme.
542 url_parse::Component insecure_scheme_component_; 547 url_parse::Component insecure_scheme_component_;
543 548
544 // Instance of accessibility information and handling. 549 // Instance of accessibility information and handling.
545 mutable base::win::ScopedComPtr<IAccessible> autocomplete_accessibility_; 550 mutable base::win::ScopedComPtr<IAccessible> autocomplete_accessibility_;
546 551
547 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); 552 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin);
548 }; 553 };
549 554
550 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ 555 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/omnibox/omnibox_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698