OLD | NEW |
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 CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ |
6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ | 6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 // from the navigation controller returned by GetNavigationController(). | 30 // from the navigation controller returned by GetNavigationController(). |
31 class ToolbarModelImpl : public ToolbarModel { | 31 class ToolbarModelImpl : public ToolbarModel { |
32 public: | 32 public: |
33 explicit ToolbarModelImpl(ToolbarModelDelegate* delegate); | 33 explicit ToolbarModelImpl(ToolbarModelDelegate* delegate); |
34 virtual ~ToolbarModelImpl(); | 34 virtual ~ToolbarModelImpl(); |
35 | 35 |
36 static SecurityLevel GetSecurityLevelForWebContents( | 36 static SecurityLevel GetSecurityLevelForWebContents( |
37 content::WebContents* web_contents); | 37 content::WebContents* web_contents); |
38 | 38 |
39 // Overriden from ToolbarModel. | 39 // Overriden from ToolbarModel. |
40 virtual string16 GetText(bool allow_search_term_replacement) const OVERRIDE; | 40 virtual string16 GetText() const OVERRIDE; |
41 virtual string16 GetCorpusNameForMobile() const OVERRIDE; | 41 virtual string16 GetCorpusNameForMobile() const OVERRIDE; |
42 virtual GURL GetURL() const OVERRIDE; | 42 virtual GURL GetURL() const OVERRIDE; |
43 virtual bool WouldPerformSearchTermReplacement( | 43 virtual bool WouldPerformSearchTermReplacement( |
44 bool ignore_editing) const OVERRIDE; | 44 bool ignore_editing) const OVERRIDE; |
45 virtual SecurityLevel GetSecurityLevel(bool ignore_editing) const OVERRIDE; | 45 virtual SecurityLevel GetSecurityLevel(bool ignore_editing) const OVERRIDE; |
46 virtual int GetIcon() const OVERRIDE; | 46 virtual int GetIcon() const OVERRIDE; |
47 virtual string16 GetEVCertName() const OVERRIDE; | 47 virtual string16 GetEVCertName() const OVERRIDE; |
48 virtual bool ShouldDisplayURL() const OVERRIDE; | 48 virtual bool ShouldDisplayURL() const OVERRIDE; |
49 | 49 |
50 // Returns "<organization_name> [<country>]". | 50 // Returns "<organization_name> [<country>]". |
(...skipping 13 matching lines...) Expand all Loading... |
64 // replacement is enabled, editing is not in progress, etc.). If | 64 // replacement is enabled, editing is not in progress, etc.). If |
65 // |ignore_editing| is true, the "editing not in progress" check is skipped. | 65 // |ignore_editing| is true, the "editing not in progress" check is skipped. |
66 string16 GetSearchTerms(bool ignore_editing) const; | 66 string16 GetSearchTerms(bool ignore_editing) const; |
67 | 67 |
68 ToolbarModelDelegate* delegate_; | 68 ToolbarModelDelegate* delegate_; |
69 | 69 |
70 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModelImpl); | 70 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModelImpl); |
71 }; | 71 }; |
72 | 72 |
73 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ | 73 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ |
OLD | NEW |