| 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 // This file defines the interface class OmniboxView. Each toolkit will | 5 // This file defines the interface class OmniboxView. Each toolkit will |
| 6 // implement the edit view differently, so that code is inherently platform | 6 // implement the edit view differently, so that code is inherently platform |
| 7 // specific. However, the OmniboxEditModel needs to do some communication with | 7 // specific. However, the OmniboxEditModel needs to do some communication with |
| 8 // the view. Since the model is shared between platforms, we need to define an | 8 // the view. Since the model is shared between platforms, we need to define an |
| 9 // interface that all view implementations will share. | 9 // interface that all view implementations will share. |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "base/strings/string_util.h" | 21 #include "base/strings/string_util.h" |
| 22 #include "base/strings/utf_string_conversions.h" | 22 #include "base/strings/utf_string_conversions.h" |
| 23 #include "components/omnibox/browser/autocomplete_match.h" | 23 #include "components/omnibox/browser/autocomplete_match.h" |
| 24 #include "ui/base/window_open_disposition.h" | 24 #include "ui/base/window_open_disposition.h" |
| 25 #include "ui/gfx/native_widget_types.h" | 25 #include "ui/gfx/native_widget_types.h" |
| 26 | 26 |
| 27 class GURL; | 27 class GURL; |
| 28 class OmniboxClient; | 28 class OmniboxClient; |
| 29 class OmniboxEditController; | 29 class OmniboxEditController; |
| 30 class OmniboxViewMacTest; | 30 class OmniboxViewMacTest; |
| 31 class ToolbarModel; | |
| 32 class OmniboxEditModel; | 31 class OmniboxEditModel; |
| 33 | 32 |
| 34 namespace gfx { | 33 namespace gfx { |
| 35 enum class VectorIconId; | 34 enum class VectorIconId; |
| 36 } | 35 } |
| 37 | 36 |
| 38 class OmniboxView { | 37 class OmniboxView { |
| 39 public: | 38 public: |
| 40 // Represents the changes between two State objects. This is used by the | 39 // Represents the changes between two State objects. This is used by the |
| 41 // model to determine how its internal state should be updated after the view | 40 // model to determine how its internal state should be updated after the view |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 friend class OmniboxViewMacTest; | 266 friend class OmniboxViewMacTest; |
| 268 | 267 |
| 269 // |model_| can be NULL in tests. | 268 // |model_| can be NULL in tests. |
| 270 std::unique_ptr<OmniboxEditModel> model_; | 269 std::unique_ptr<OmniboxEditModel> model_; |
| 271 OmniboxEditController* controller_; | 270 OmniboxEditController* controller_; |
| 272 | 271 |
| 273 DISALLOW_COPY_AND_ASSIGN(OmniboxView); | 272 DISALLOW_COPY_AND_ASSIGN(OmniboxView); |
| 274 }; | 273 }; |
| 275 | 274 |
| 276 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_VIEW_H_ | 275 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_VIEW_H_ |
| OLD | NEW |