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 #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 Loading... |
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 Loading... |
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_ |
OLD | NEW |