OLD | NEW |
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 DECLARE_WND_CLASS(L"Chrome_OmniboxView"); | 62 DECLARE_WND_CLASS(L"Chrome_OmniboxView"); |
63 | 63 |
64 OmniboxViewWin(const gfx::Font& font, | 64 OmniboxViewWin(const gfx::Font& font, |
65 AutocompleteEditController* controller, | 65 AutocompleteEditController* controller, |
66 ToolbarModel* toolbar_model, | 66 ToolbarModel* toolbar_model, |
67 LocationBarView* parent_view, | 67 LocationBarView* parent_view, |
68 HWND hwnd, | 68 HWND hwnd, |
69 Profile* profile, | 69 Profile* profile, |
70 CommandUpdater* command_updater, | 70 CommandUpdater* command_updater, |
71 bool popup_window_mode, | 71 bool popup_window_mode, |
72 const views::View* location_bar); | 72 views::View* location_bar); |
73 ~OmniboxViewWin(); | 73 ~OmniboxViewWin(); |
74 | 74 |
75 views::View* parent_view() const; | 75 views::View* parent_view() const; |
76 | 76 |
77 // Returns the width in pixels needed to display the text from one character | 77 // Returns the width in pixels needed to display the text from one character |
78 // before the caret to the end of the string. See comments in | 78 // before the caret to the end of the string. See comments in |
79 // LocationBarView::Layout as to why this uses -1. | 79 // LocationBarView::Layout as to why this uses -1. |
80 int WidthOfTextAfterCursor(); | 80 int WidthOfTextAfterCursor(); |
81 | 81 |
82 // Returns the font. | 82 // Returns the font. |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 // stricken-out when displaying an insecure scheme. | 539 // stricken-out when displaying an insecure scheme. |
540 url_parse::Component insecure_scheme_component_; | 540 url_parse::Component insecure_scheme_component_; |
541 | 541 |
542 // Instance of accessibility information and handling. | 542 // Instance of accessibility information and handling. |
543 mutable base::win::ScopedComPtr<IAccessible> autocomplete_accessibility_; | 543 mutable base::win::ScopedComPtr<IAccessible> autocomplete_accessibility_; |
544 | 544 |
545 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); | 545 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); |
546 }; | 546 }; |
547 | 547 |
548 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ | 548 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ |
OLD | NEW |