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

Side by Side Diff: content/public/browser/web_ui.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: Fixed comment nits Created 7 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CONTENT_PUBLIC_BROWSER_WEB_UI_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_UI_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_UI_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_UI_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // the page contents. Some pages will want to use this to encourage the user 65 // the page contents. Some pages will want to use this to encourage the user
66 // to type in the URL bar. 66 // to type in the URL bar.
67 virtual bool ShouldFocusLocationBarByDefault() const = 0; 67 virtual bool ShouldFocusLocationBarByDefault() const = 0;
68 virtual void FocusLocationBarByDefault() = 0; 68 virtual void FocusLocationBarByDefault() = 0;
69 69
70 // Returns true if the page's URL should be hidden. Some Web UI pages 70 // Returns true if the page's URL should be hidden. Some Web UI pages
71 // like the new tab page will want to hide it. 71 // like the new tab page will want to hide it.
72 virtual bool ShouldHideURL() const = 0; 72 virtual bool ShouldHideURL() const = 0;
73 virtual void HideURL() = 0; 73 virtual void HideURL() = 0;
74 74
75 // Returns true if the pages URL should be entirely greyed out, currently
Peter Kasting 2013/04/03 22:32:13 Nit: Comma -> period and capitalize next word
Patrick Riordan 2013/04/04 01:01:37 Done.
76 // this is only the case for chrome-extension:// URLs.
77 virtual bool ShouldGreyOutURL() const = 0;
78 virtual void GreyOutURL() = 0;
79
75 // Gets a custom tab title provided by the Web UI. If there is no title 80 // Gets a custom tab title provided by the Web UI. If there is no title
76 // override, the string will be empty which should trigger the default title 81 // override, the string will be empty which should trigger the default title
77 // behavior for the tab. 82 // behavior for the tab.
78 virtual const string16& GetOverriddenTitle() const = 0; 83 virtual const string16& GetOverriddenTitle() const = 0;
79 virtual void OverrideTitle(const string16& title) = 0; 84 virtual void OverrideTitle(const string16& title) = 0;
80 85
81 // Returns the transition type that should be used for link clicks on this 86 // Returns the transition type that should be used for link clicks on this
82 // Web UI. This will default to LINK but may be overridden. 87 // Web UI. This will default to LINK but may be overridden.
83 virtual PageTransition GetLinkTransitionType() const = 0; 88 virtual PageTransition GetLinkTransitionType() const = 0;
84 virtual void SetLinkTransitionType(PageTransition type) = 0; 89 virtual void SetLinkTransitionType(PageTransition type) = 0;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 const base::Value& arg3, 134 const base::Value& arg3,
130 const base::Value& arg4) = 0; 135 const base::Value& arg4) = 0;
131 virtual void CallJavascriptFunction( 136 virtual void CallJavascriptFunction(
132 const std::string& function_name, 137 const std::string& function_name,
133 const std::vector<const base::Value*>& args) = 0; 138 const std::vector<const base::Value*>& args) = 0;
134 }; 139 };
135 140
136 } // namespace content 141 } // namespace content
137 142
138 #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_H_ 143 #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_H_
OLDNEW
« chrome/browser/ui/views/omnibox/omnibox_view_win.cc ('K') | « content/browser/webui/web_ui_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698