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

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

Issue 2001433002: Update appearance of omnibox focus for MD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dont break ios Created 4 years, 7 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 "ui/base/page_transition_types.h" 10 #include "ui/base/page_transition_types.h"
(...skipping 12 matching lines...) Expand all
23 WindowOpenDisposition disposition, 23 WindowOpenDisposition disposition,
24 ui::PageTransition transition); 24 ui::PageTransition transition);
25 25
26 virtual void OnInputInProgress(bool in_progress) = 0; 26 virtual void OnInputInProgress(bool in_progress) = 0;
27 27
28 // Called when anything has changed that might affect the layout or contents 28 // Called when anything has changed that might affect the layout or contents
29 // of the views around the edit, including the text of the edit and the 29 // of the views around the edit, including the text of the edit and the
30 // status of any keyword- or hint-related state. 30 // status of any keyword- or hint-related state.
31 virtual void OnChanged() = 0; 31 virtual void OnChanged() = 0;
32 32
33 // Called whenever the autocomplete edit gets focused.
34 virtual void OnSetFocus() = 0;
35
36 // Shows the URL. 33 // Shows the URL.
37 virtual void ShowURL() = 0; 34 virtual void ShowURL() = 0;
38 35
39 virtual ToolbarModel* GetToolbarModel() = 0; 36 virtual ToolbarModel* GetToolbarModel() = 0;
40 virtual const ToolbarModel* GetToolbarModel() const = 0; 37 virtual const ToolbarModel* GetToolbarModel() const = 0;
41 38
42 protected: 39 protected:
43 OmniboxEditController(); 40 OmniboxEditController();
44 virtual ~OmniboxEditController(); 41 virtual ~OmniboxEditController();
45 42
46 GURL destination_url() const { return destination_url_; } 43 GURL destination_url() const { return destination_url_; }
47 WindowOpenDisposition disposition() const { return disposition_; } 44 WindowOpenDisposition disposition() const { return disposition_; }
48 ui::PageTransition transition() const { return transition_; } 45 ui::PageTransition transition() const { return transition_; }
49 46
50 private: 47 private:
51 // The details necessary to open the user's desired omnibox match. 48 // The details necessary to open the user's desired omnibox match.
52 GURL destination_url_; 49 GURL destination_url_;
53 WindowOpenDisposition disposition_; 50 WindowOpenDisposition disposition_;
54 ui::PageTransition transition_; 51 ui::PageTransition transition_;
55 52
56 DISALLOW_COPY_AND_ASSIGN(OmniboxEditController); 53 DISALLOW_COPY_AND_ASSIGN(OmniboxEditController);
57 }; 54 };
58 55
59 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_CONTROLLER_H_ 56 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698