| 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 11 matching lines...) Expand all Loading... |
| 22 #include "content/common/page_transition_types.h" | 22 #include "content/common/page_transition_types.h" |
| 23 #include "ui/base/models/simple_menu_model.h" | 23 #include "ui/base/models/simple_menu_model.h" |
| 24 #include "ui/gfx/font.h" | 24 #include "ui/gfx/font.h" |
| 25 #include "views/controls/menu/menu_2.h" | 25 #include "views/controls/menu/menu_2.h" |
| 26 #include "webkit/glue/window_open_disposition.h" | 26 #include "webkit/glue/window_open_disposition.h" |
| 27 | 27 |
| 28 class AutocompleteEditController; | 28 class AutocompleteEditController; |
| 29 class AutocompleteEditModel; | 29 class AutocompleteEditModel; |
| 30 class AutocompletePopupView; | 30 class AutocompletePopupView; |
| 31 class LocationBarView; | 31 class LocationBarView; |
| 32 class Profile; | |
| 33 class TabContents; | 32 class TabContents; |
| 34 | 33 |
| 35 namespace views { | 34 namespace views { |
| 36 class View; | 35 class View; |
| 37 } | 36 } |
| 38 | 37 |
| 39 // Provides the implementation of an edit control with a drop-down | 38 // Provides the implementation of an edit control with a drop-down |
| 40 // autocomplete box. The box itself is implemented in autocomplete_popup.cc | 39 // autocomplete box. The box itself is implemented in autocomplete_popup.cc |
| 41 // This file implements the edit box and management for the popup. | 40 // This file implements the edit box and management for the popup. |
| 42 class OmniboxViewWin | 41 class OmniboxViewWin |
| (...skipping 16 matching lines...) Expand all Loading... |
| 59 const CHARRANGE saved_selection_for_focus_change; | 58 const CHARRANGE saved_selection_for_focus_change; |
| 60 }; | 59 }; |
| 61 | 60 |
| 62 DECLARE_WND_CLASS(L"Chrome_OmniboxView"); | 61 DECLARE_WND_CLASS(L"Chrome_OmniboxView"); |
| 63 | 62 |
| 64 OmniboxViewWin(const gfx::Font& font, | 63 OmniboxViewWin(const gfx::Font& font, |
| 65 AutocompleteEditController* controller, | 64 AutocompleteEditController* controller, |
| 66 ToolbarModel* toolbar_model, | 65 ToolbarModel* toolbar_model, |
| 67 LocationBarView* parent_view, | 66 LocationBarView* parent_view, |
| 68 HWND hwnd, | 67 HWND hwnd, |
| 69 Profile* profile, | |
| 70 CommandUpdater* command_updater, | 68 CommandUpdater* command_updater, |
| 71 bool popup_window_mode, | 69 bool popup_window_mode, |
| 72 const views::View* location_bar); | 70 const views::View* location_bar); |
| 73 ~OmniboxViewWin(); | 71 ~OmniboxViewWin(); |
| 74 | 72 |
| 75 views::View* parent_view() const; | 73 views::View* parent_view() const; |
| 76 | 74 |
| 77 // Returns the width in pixels needed to display the text from one character | 75 // 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 | 76 // before the caret to the end of the string. See comments in |
| 79 // LocationBarView::Layout as to why this uses -1. | 77 // LocationBarView::Layout as to why this uses -1. |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 // stricken-out when displaying an insecure scheme. | 537 // stricken-out when displaying an insecure scheme. |
| 540 url_parse::Component insecure_scheme_component_; | 538 url_parse::Component insecure_scheme_component_; |
| 541 | 539 |
| 542 // Instance of accessibility information and handling. | 540 // Instance of accessibility information and handling. |
| 543 mutable base::win::ScopedComPtr<IAccessible> autocomplete_accessibility_; | 541 mutable base::win::ScopedComPtr<IAccessible> autocomplete_accessibility_; |
| 544 | 542 |
| 545 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); | 543 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); |
| 546 }; | 544 }; |
| 547 | 545 |
| 548 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ | 546 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ |
| OLD | NEW |