Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Side by Side Diff: components/omnibox/browser/omnibox_edit_controller.h

Issue 2256613002: Remove ShowURL/HideURL from OmniboxView and LocationBarView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_search_terms
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
(...skipping 14 matching lines...) Expand all
25 ui::PageTransition transition, 25 ui::PageTransition transition,
26 AutocompleteMatchType::Type match_type); 26 AutocompleteMatchType::Type match_type);
27 27
28 virtual void OnInputInProgress(bool in_progress) = 0; 28 virtual void OnInputInProgress(bool in_progress) = 0;
29 29
30 // Called when anything has changed that might affect the layout or contents 30 // Called when anything has changed that might affect the layout or contents
31 // of the views around the edit, including the text of the edit and the 31 // of the views around the edit, including the text of the edit and the
32 // status of any keyword- or hint-related state. 32 // status of any keyword- or hint-related state.
33 virtual void OnChanged() = 0; 33 virtual void OnChanged() = 0;
34 34
35 // Shows the URL.
36 virtual void ShowURL() = 0;
37
38 virtual ToolbarModel* GetToolbarModel() = 0; 35 virtual ToolbarModel* GetToolbarModel() = 0;
39 virtual const ToolbarModel* GetToolbarModel() const = 0; 36 virtual const ToolbarModel* GetToolbarModel() const = 0;
40 37
41 protected: 38 protected:
42 OmniboxEditController(); 39 OmniboxEditController();
43 virtual ~OmniboxEditController(); 40 virtual ~OmniboxEditController();
44 41
45 GURL destination_url() const { return destination_url_; } 42 GURL destination_url() const { return destination_url_; }
46 WindowOpenDisposition disposition() const { return disposition_; } 43 WindowOpenDisposition disposition() const { return disposition_; }
47 ui::PageTransition transition() const { return transition_; } 44 ui::PageTransition transition() const { return transition_; }
48 45
49 private: 46 private:
50 // The details necessary to open the user's desired omnibox match. 47 // The details necessary to open the user's desired omnibox match.
51 GURL destination_url_; 48 GURL destination_url_;
52 WindowOpenDisposition disposition_; 49 WindowOpenDisposition disposition_;
53 ui::PageTransition transition_; 50 ui::PageTransition transition_;
54 51
55 DISALLOW_COPY_AND_ASSIGN(OmniboxEditController); 52 DISALLOW_COPY_AND_ASSIGN(OmniboxEditController);
56 }; 53 };
57 54
58 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_CONTROLLER_H_ 55 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_views_unittest.cc ('k') | components/omnibox/browser/omnibox_edit_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698