OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_CONTROLLER_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_CONTROLLER_H_ |
6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_CONTROLLER_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_CONTROLLER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "components/omnibox/browser/autocomplete_match_type.h" | 10 #include "components/omnibox/browser/autocomplete_match_type.h" |
11 #include "ui/base/page_transition_types.h" | 11 #include "ui/base/page_transition_types.h" |
12 #include "ui/base/window_open_disposition.h" | 12 #include "ui/base/window_open_disposition.h" |
13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
14 | 14 |
15 class ToolbarModel; | 15 class ToolbarModel; |
16 | 16 |
17 namespace gfx { | |
18 class Image; | |
19 } | |
20 | |
21 class OmniboxEditController { | 17 class OmniboxEditController { |
22 public: | 18 public: |
23 virtual void OnAutocompleteAccept(const GURL& destination_url, | 19 virtual void OnAutocompleteAccept(const GURL& destination_url, |
24 WindowOpenDisposition disposition, | 20 WindowOpenDisposition disposition, |
25 ui::PageTransition transition, | 21 ui::PageTransition transition, |
26 AutocompleteMatchType::Type match_type); | 22 AutocompleteMatchType::Type match_type); |
27 | 23 |
28 virtual void OnInputInProgress(bool in_progress) = 0; | 24 virtual void OnInputInProgress(bool in_progress) = 0; |
29 | 25 |
30 // Called when anything has changed that might affect the layout or contents | 26 // Called when anything has changed that might affect the layout or contents |
(...skipping 15 matching lines...) Expand all Loading... |
46 private: | 42 private: |
47 // The details necessary to open the user's desired omnibox match. | 43 // The details necessary to open the user's desired omnibox match. |
48 GURL destination_url_; | 44 GURL destination_url_; |
49 WindowOpenDisposition disposition_; | 45 WindowOpenDisposition disposition_; |
50 ui::PageTransition transition_; | 46 ui::PageTransition transition_; |
51 | 47 |
52 DISALLOW_COPY_AND_ASSIGN(OmniboxEditController); | 48 DISALLOW_COPY_AND_ASSIGN(OmniboxEditController); |
53 }; | 49 }; |
54 | 50 |
55 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_CONTROLLER_H_ | 51 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_CONTROLLER_H_ |
OLD | NEW |