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

Side by Side Diff: chrome/browser/ui/toolbar/toolbar_model_impl.h

Issue 12463042: Shows chrome-extension urls and greys out the whole url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed the correct extra newline Created 7 years, 9 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 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 28 matching lines...) Expand all
39 // Overriden from ToolbarModel. 39 // Overriden from ToolbarModel.
40 virtual string16 GetText( 40 virtual string16 GetText(
41 bool display_search_urls_as_search_terms) const OVERRIDE; 41 bool display_search_urls_as_search_terms) const OVERRIDE;
42 virtual string16 GetCorpusNameForMobile() const OVERRIDE; 42 virtual string16 GetCorpusNameForMobile() const OVERRIDE;
43 virtual GURL GetURL() const OVERRIDE; 43 virtual GURL GetURL() const OVERRIDE;
44 virtual bool WouldReplaceSearchURLWithSearchTerms() const OVERRIDE; 44 virtual bool WouldReplaceSearchURLWithSearchTerms() const OVERRIDE;
45 virtual SecurityLevel GetSecurityLevel() const OVERRIDE; 45 virtual SecurityLevel GetSecurityLevel() 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 virtual bool ShouldGreyOutURL() const OVERRIDE;
49 virtual void SetInputInProgress(bool value) OVERRIDE; 50 virtual void SetInputInProgress(bool value) OVERRIDE;
50 virtual bool GetInputInProgress() const OVERRIDE; 51 virtual bool GetInputInProgress() const OVERRIDE;
51 52
52 // Returns "<organization_name> [<country>]". 53 // Returns "<organization_name> [<country>]".
53 static string16 GetEVCertName(const net::X509Certificate& cert); 54 static string16 GetEVCertName(const net::X509Certificate& cert);
54 55
55 private: 56 private:
56 // Returns the navigation controller used to retrieve the navigation entry 57 // Returns the navigation controller used to retrieve the navigation entry
57 // from which the states are retrieved. 58 // from which the states are retrieved.
58 // If this returns NULL, default values are used. 59 // If this returns NULL, default values are used.
59 content::NavigationController* GetNavigationController() const; 60 content::NavigationController* GetNavigationController() const;
60 61
61 // Helper method to extract the profile from the navigation controller. 62 // Helper method to extract the profile from the navigation controller.
62 Profile* GetProfile() const; 63 Profile* GetProfile() const;
63 64
64 // Returns search terms as in chrome::GetSearchTerms unless those 65 // Returns search terms as in chrome::GetSearchTerms unless those
65 // terms would be treated by the omnibox as a navigation. 66 // terms would be treated by the omnibox as a navigation.
66 string16 GetSearchTerms() const; 67 string16 GetSearchTerms() const;
67 68
68 ToolbarModelDelegate* delegate_; 69 ToolbarModelDelegate* delegate_;
69 70
70 // Whether the text in the location bar is currently being edited. 71 // Whether the text in the location bar is currently being edited.
71 bool input_in_progress_; 72 bool input_in_progress_;
72 73
73 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModelImpl); 74 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModelImpl);
74 }; 75 };
75 76
76 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ 77 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698