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

Side by Side Diff: chrome/browser/ui/location_bar/location_bar.h

Issue 2555063003: Render extension URLs with chips (Closed)
Patch Set: pkasting comments and rebase Created 4 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_LOCATION_BAR_LOCATION_BAR_H_ 5 #ifndef CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_
6 #define CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ 6 #define CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 virtual LocationBarTesting* GetLocationBarForTesting() = 0; 93 virtual LocationBarTesting* GetLocationBarForTesting() = 0;
94 94
95 Profile* profile() { return profile_; } 95 Profile* profile() { return profile_; }
96 96
97 protected: 97 protected:
98 virtual ~LocationBar(); 98 virtual ~LocationBar();
99 99
100 // Checks if any extension has requested that the bookmark star be hidden. 100 // Checks if any extension has requested that the bookmark star be hidden.
101 bool IsBookmarkStarHiddenByExtension() const; 101 bool IsBookmarkStarHiddenByExtension() const;
102 102
103 // If |url| is an extension URL, returns the name of the associated extension,
104 // with whitespace collapsed. Otherwise, returns empty string. |web_contents|
105 // is used to get at the extension registry.
106 static base::string16 GetExtensionName(const GURL& url,
107 content::WebContents* web_contents);
108
103 private: 109 private:
104 Profile* profile_; 110 Profile* profile_;
105 111
106 DISALLOW_COPY_AND_ASSIGN(LocationBar); 112 DISALLOW_COPY_AND_ASSIGN(LocationBar);
107 }; 113 };
108 114
109 class LocationBarTesting { 115 class LocationBarTesting {
110 public: 116 public:
111 // Returns the total number of page actions in the Omnibox. 117 // Returns the total number of page actions in the Omnibox.
112 virtual int PageActionCount() = 0; 118 virtual int PageActionCount() = 0;
(...skipping 11 matching lines...) Expand all
124 virtual void TestPageActionPressed(size_t index) = 0; 130 virtual void TestPageActionPressed(size_t index) = 0;
125 131
126 // Returns whether or not the bookmark star decoration is visible. 132 // Returns whether or not the bookmark star decoration is visible.
127 virtual bool GetBookmarkStarVisibility() = 0; 133 virtual bool GetBookmarkStarVisibility() = 0;
128 134
129 protected: 135 protected:
130 virtual ~LocationBarTesting() {} 136 virtual ~LocationBarTesting() {}
131 }; 137 };
132 138
133 #endif // CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_ 139 #endif // CHROME_BROWSER_UI_LOCATION_BAR_LOCATION_BAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698