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

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

Issue 9985012: Adjust location of text in omnibox edit control for Metro. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minimize diff. 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 | Annotate | Revision Log
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 const CHARRANGE saved_selection_for_focus_change; 64 const CHARRANGE saved_selection_for_focus_change;
65 }; 65 };
66 66
67 DECLARE_WND_CLASS(L"Chrome_OmniboxView"); 67 DECLARE_WND_CLASS(L"Chrome_OmniboxView");
68 68
69 OmniboxViewWin(AutocompleteEditController* controller, 69 OmniboxViewWin(AutocompleteEditController* controller,
70 ToolbarModel* toolbar_model, 70 ToolbarModel* toolbar_model,
71 LocationBarView* parent_view, 71 LocationBarView* parent_view,
72 CommandUpdater* command_updater, 72 CommandUpdater* command_updater,
73 bool popup_window_mode, 73 bool popup_window_mode,
74 int height,
74 views::View* location_bar); 75 views::View* location_bar);
75 ~OmniboxViewWin(); 76 ~OmniboxViewWin();
76 77
77 // Gets the relative window for the specified native view. 78 // Gets the relative window for the specified native view.
78 static gfx::NativeView GetRelativeWindowForNativeView( 79 static gfx::NativeView GetRelativeWindowForNativeView(
79 gfx::NativeView edit_native_view); 80 gfx::NativeView edit_native_view);
80 81
81 views::View* parent_view() const; 82 views::View* parent_view() const;
82 83
83 // Returns the width in pixels needed to display the text from one character 84 // Returns the width in pixels needed to display the text from one character
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 views::NativeViewHost* native_view_host_; 544 views::NativeViewHost* native_view_host_;
544 545
545 // ITextInputPanel to allow us to show the Windows virtual keyboard when a 546 // ITextInputPanel to allow us to show the Windows virtual keyboard when a
546 // user touches the Omnibox. 547 // user touches the Omnibox.
547 base::win::ScopedComPtr<ITextInputPanel> keyboard_; 548 base::win::ScopedComPtr<ITextInputPanel> keyboard_;
548 549
549 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); 550 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin);
550 }; 551 };
551 552
552 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ 553 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698