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

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

Issue 2076303002: Delete query in omnibox code. R.I.P. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete query in the omnibox code from toolbar model. Created 4 years, 6 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_IMPL_H_ 5 #ifndef COMPONENTS_TOOLBAR_TOOLBAR_MODEL_IMPL_H_
6 #define COMPONENTS_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ 6 #define COMPONENTS_TOOLBAR_TOOLBAR_MODEL_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 16 matching lines...) Expand all
27 class ToolbarModelImpl : public ToolbarModel { 27 class ToolbarModelImpl : public ToolbarModel {
28 public: 28 public:
29 ToolbarModelImpl(ToolbarModelDelegate* delegate, 29 ToolbarModelImpl(ToolbarModelDelegate* delegate,
30 size_t max_url_display_chars); 30 size_t max_url_display_chars);
31 ~ToolbarModelImpl() override; 31 ~ToolbarModelImpl() override;
32 32
33 private: 33 private:
34 // ToolbarModel: 34 // ToolbarModel:
35 base::string16 GetText() const override; 35 base::string16 GetText() const override;
36 base::string16 GetFormattedURL(size_t* prefix_end) const override; 36 base::string16 GetFormattedURL(size_t* prefix_end) const override;
37 base::string16 GetCorpusNameForMobile() const override;
38 GURL GetURL() const override; 37 GURL GetURL() const override;
39 bool WouldPerformSearchTermReplacement(bool ignore_editing) const override; 38 bool WouldPerformSearchTermReplacement(bool ignore_editing) const override;
40 security_state::SecurityStateModel::SecurityLevel GetSecurityLevel( 39 security_state::SecurityStateModel::SecurityLevel GetSecurityLevel(
41 bool ignore_editing) const override; 40 bool ignore_editing) const override;
42 int GetIcon() const override; 41 int GetIcon() const override;
43 gfx::VectorIconId GetVectorIcon() const override; 42 gfx::VectorIconId GetVectorIcon() const override;
44 base::string16 GetEVCertName() const override; 43 base::string16 GetEVCertName() const override;
45 bool ShouldDisplayURL() const override; 44 bool ShouldDisplayURL() const override;
46 45
47 // Returns search terms as in search::GetSearchTerms() if such terms should 46 // Returns search terms as in search::GetSearchTerms() if such terms should
48 // appear in the omnibox (i.e. the page is sufficiently secure, search term 47 // appear in the omnibox (i.e. the page is sufficiently secure, search term
49 // replacement is enabled, editing is not in progress, etc.). If 48 // replacement is enabled, editing is not in progress, etc.). If
50 // |ignore_editing| is true, the "editing not in progress" check is skipped. 49 // |ignore_editing| is true, the "editing not in progress" check is skipped.
51 base::string16 GetSearchTerms(bool ignore_editing) const; 50 base::string16 GetSearchTerms(bool ignore_editing) const;
52 51
53 ToolbarModelDelegate* delegate_; 52 ToolbarModelDelegate* delegate_;
54 const size_t max_url_display_chars_; 53 const size_t max_url_display_chars_;
55 54
56 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModelImpl); 55 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModelImpl);
57 }; 56 };
58 57
59 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ 58 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698