| 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_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <set> | 11 #include <set> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
| 18 #include "components/omnibox/browser/omnibox_view.h" | 18 #include "components/omnibox/browser/omnibox_view.h" |
| 19 #include "components/security_state/security_state_model.h" | 19 #include "components/security_state/core/security_state.h" |
| 20 #include "ui/base/window_open_disposition.h" | 20 #include "ui/base/window_open_disposition.h" |
| 21 #include "ui/gfx/range/range.h" | 21 #include "ui/gfx/range/range.h" |
| 22 #include "ui/views/controls/textfield/textfield.h" | 22 #include "ui/views/controls/textfield/textfield.h" |
| 23 #include "ui/views/controls/textfield/textfield_controller.h" | 23 #include "ui/views/controls/textfield/textfield_controller.h" |
| 24 | 24 |
| 25 #if defined(OS_CHROMEOS) | 25 #if defined(OS_CHROMEOS) |
| 26 #include "ui/base/ime/chromeos/input_method_manager.h" | 26 #include "ui/base/ime/chromeos/input_method_manager.h" |
| 27 #endif | 27 #endif |
| 28 | 28 |
| 29 class CommandUpdater; | 29 class CommandUpdater; |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 void UpdateContextMenu(ui::SimpleMenuModel* menu_contents) override; | 209 void UpdateContextMenu(ui::SimpleMenuModel* menu_contents) override; |
| 210 | 210 |
| 211 Profile* profile_; | 211 Profile* profile_; |
| 212 | 212 |
| 213 // When true, the location bar view is read only and also is has a slightly | 213 // When true, the location bar view is read only and also is has a slightly |
| 214 // different presentation (smaller font size). This is used for popups. | 214 // different presentation (smaller font size). This is used for popups. |
| 215 bool popup_window_mode_; | 215 bool popup_window_mode_; |
| 216 | 216 |
| 217 std::unique_ptr<OmniboxPopupView> popup_view_; | 217 std::unique_ptr<OmniboxPopupView> popup_view_; |
| 218 | 218 |
| 219 security_state::SecurityStateModel::SecurityLevel security_level_; | 219 security_state::SecurityLevel security_level_; |
| 220 | 220 |
| 221 // Selection persisted across temporary text changes, like popup suggestions. | 221 // Selection persisted across temporary text changes, like popup suggestions. |
| 222 gfx::Range saved_temporary_selection_; | 222 gfx::Range saved_temporary_selection_; |
| 223 | 223 |
| 224 // Holds the user's selection across focus changes. There is only a saved | 224 // Holds the user's selection across focus changes. There is only a saved |
| 225 // selection if this range IsValid(). | 225 // selection if this range IsValid(). |
| 226 gfx::Range saved_selection_for_focus_change_; | 226 gfx::Range saved_selection_for_focus_change_; |
| 227 | 227 |
| 228 // Tracking state before and after a possible change. | 228 // Tracking state before and after a possible change. |
| 229 State state_before_change_; | 229 State state_before_change_; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 255 // painted. Used to measure omnibox responsiveness with a histogram. | 255 // painted. Used to measure omnibox responsiveness with a histogram. |
| 256 base::TimeTicks insert_char_time_; | 256 base::TimeTicks insert_char_time_; |
| 257 | 257 |
| 258 // Used to bind callback functions to this object. | 258 // Used to bind callback functions to this object. |
| 259 base::WeakPtrFactory<OmniboxViewViews> weak_ptr_factory_; | 259 base::WeakPtrFactory<OmniboxViewViews> weak_ptr_factory_; |
| 260 | 260 |
| 261 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); | 261 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); |
| 262 }; | 262 }; |
| 263 | 263 |
| 264 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 264 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
| OLD | NEW |