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

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

Issue 10332197: SelectAll when activating the omni box via touch. Regular (short) touch should now work the same wa… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moved the #ifndefs to the header file Created 8 years, 7 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
« 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) 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 #pragma once 7 #pragma once
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlapp.h> 10 #include <atlapp.h>
(...skipping 22 matching lines...) Expand all
33 class Menu2; 33 class Menu2;
34 class NativeViewHost; 34 class NativeViewHost;
35 class View; 35 class View;
36 } 36 }
37 37
38 // TODO(abodenha): This should be removed once we have the new windows SDK 38 // TODO(abodenha): This should be removed once we have the new windows SDK
39 // which defines these messages. 39 // which defines these messages.
40 #if !defined(WM_POINTERDOWN) 40 #if !defined(WM_POINTERDOWN)
41 #define WM_POINTERDOWN 0x0246 41 #define WM_POINTERDOWN 0x0246
42 #endif // WM_POINTERDOWN 42 #endif // WM_POINTERDOWN
43 #ifndef POINTER_MESSAGE_FLAG_FIRSTBUTTON
44 #define POINTER_MESSAGE_FLAG_FIRSTBUTTON 0x00000010
45 #endif // POINTER_MESSAGE_FLAG_FIRSTBUTTON
46 #ifndef IS_POINTER_FLAG_SET_WPARAM
47 #define IS_POINTER_FLAG_SET_WPARAM(wParam, flag) \
48 (((DWORD)HIWORD(wParam) & (flag)) == (flag))
49 #endif // IS_POINTER_FLAG_SET_WPARAM
50 #ifndef IS_POINTER_FIRSTBUTTON_WPARAM
51 #define IS_POINTER_FIRSTBUTTON_WPARAM(wParam) \
52 IS_POINTER_FLAG_SET_WPARAM(wParam, POINTER_MESSAGE_FLAG_FIRSTBUTTON)
53 #endif // IS_POINTER_FIRSTBUTTON_WPARAM
43 54
44 // Provides the implementation of an edit control with a drop-down 55 // Provides the implementation of an edit control with a drop-down
45 // autocomplete box. The box itself is implemented in autocomplete_popup.cc 56 // autocomplete box. The box itself is implemented in autocomplete_popup.cc
46 // This file implements the edit box and management for the popup. 57 // This file implements the edit box and management for the popup.
47 class OmniboxViewWin 58 class OmniboxViewWin
48 : public CWindowImpl<OmniboxViewWin, 59 : public CWindowImpl<OmniboxViewWin,
49 CRichEditCtrl, 60 CRichEditCtrl,
50 CWinTraits<WS_CHILD | WS_VISIBLE | ES_AUTOHSCROLL | 61 CWinTraits<WS_CHILD | WS_VISIBLE | ES_AUTOHSCROLL |
51 ES_NOHIDESEL> >, 62 ES_NOHIDESEL> >,
52 public CRichEditCommands<OmniboxViewWin>, 63 public CRichEditCommands<OmniboxViewWin>,
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 views::NativeViewHost* native_view_host_; 554 views::NativeViewHost* native_view_host_;
544 555
545 // ITextInputPanel to allow us to show the Windows virtual keyboard when a 556 // ITextInputPanel to allow us to show the Windows virtual keyboard when a
546 // user touches the Omnibox. 557 // user touches the Omnibox.
547 base::win::ScopedComPtr<ITextInputPanel> keyboard_; 558 base::win::ScopedComPtr<ITextInputPanel> keyboard_;
548 559
549 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); 560 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin);
550 }; 561 };
551 562
552 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ 563 #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