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

Side by Side Diff: components/toolbar/toolbar_model.h

Issue 2242213008: Remove url_replacement logic from Omnibox/ToolbarModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_show_url
Patch Set: Created 4 years, 4 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 COMPONENTS_TOOLBAR_TOOLBAR_MODEL_H_ 5 #ifndef COMPONENTS_TOOLBAR_TOOLBAR_MODEL_H_
6 #define COMPONENTS_TOOLBAR_TOOLBAR_MODEL_H_ 6 #define COMPONENTS_TOOLBAR_TOOLBAR_MODEL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Returns whether the URL for the current navigation entry should be 59 // Returns whether the URL for the current navigation entry should be
60 // in the location bar. 60 // in the location bar.
61 virtual bool ShouldDisplayURL() const = 0; 61 virtual bool ShouldDisplayURL() const = 0;
62 62
63 // Whether the text in the omnibox is currently being edited. 63 // Whether the text in the omnibox is currently being edited.
64 void set_input_in_progress(bool input_in_progress) { 64 void set_input_in_progress(bool input_in_progress) {
65 input_in_progress_ = input_in_progress; 65 input_in_progress_ = input_in_progress;
66 } 66 }
67 bool input_in_progress() const { return input_in_progress_; } 67 bool input_in_progress() const { return input_in_progress_; }
68 68
69 // Whether URL replacement should be enabled.
70 // TODO(treib,pkasting): Remove this. crbug.com/627747
71 void set_url_replacement_enabled(bool enabled) {
72 url_replacement_enabled_ = enabled;
73 }
74 bool url_replacement_enabled() const {
75 return url_replacement_enabled_;
76 }
77
78 protected: 69 protected:
79 ToolbarModel(); 70 ToolbarModel();
80 71
81 private: 72 private:
82 bool input_in_progress_; 73 bool input_in_progress_;
83 bool url_replacement_enabled_;
84 74
85 DISALLOW_COPY_AND_ASSIGN(ToolbarModel); 75 DISALLOW_COPY_AND_ASSIGN(ToolbarModel);
86 }; 76 };
87 77
88 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_H_ 78 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698