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

Side by Side Diff: content/browser/webui/web_ui_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: Not hacky anymore 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 (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_BROWSER_WEBUI_WEB_UI_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_
6 #define CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ 6 #define CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 20 matching lines...) Expand all
31 virtual WebContents* GetWebContents() const OVERRIDE; 31 virtual WebContents* GetWebContents() const OVERRIDE;
32 virtual WebUIController* GetController() const OVERRIDE; 32 virtual WebUIController* GetController() const OVERRIDE;
33 virtual void SetController(WebUIController* controller) OVERRIDE; 33 virtual void SetController(WebUIController* controller) OVERRIDE;
34 virtual ui::ScaleFactor GetDeviceScaleFactor() const OVERRIDE; 34 virtual ui::ScaleFactor GetDeviceScaleFactor() const OVERRIDE;
35 virtual bool ShouldHideFavicon() const OVERRIDE; 35 virtual bool ShouldHideFavicon() const OVERRIDE;
36 virtual void HideFavicon() OVERRIDE; 36 virtual void HideFavicon() OVERRIDE;
37 virtual bool ShouldFocusLocationBarByDefault() const OVERRIDE; 37 virtual bool ShouldFocusLocationBarByDefault() const OVERRIDE;
38 virtual void FocusLocationBarByDefault() OVERRIDE; 38 virtual void FocusLocationBarByDefault() OVERRIDE;
39 virtual bool ShouldHideURL() const OVERRIDE; 39 virtual bool ShouldHideURL() const OVERRIDE;
40 virtual void HideURL() OVERRIDE; 40 virtual void HideURL() OVERRIDE;
41 virtual bool ShouldNotEmphasizeHost() const OVERRIDE;
42 virtual void DontEmphasizeHost() OVERRIDE;
41 virtual const string16& GetOverriddenTitle() const OVERRIDE; 43 virtual const string16& GetOverriddenTitle() const OVERRIDE;
42 virtual void OverrideTitle(const string16& title) OVERRIDE; 44 virtual void OverrideTitle(const string16& title) OVERRIDE;
43 virtual PageTransition GetLinkTransitionType() const OVERRIDE; 45 virtual PageTransition GetLinkTransitionType() const OVERRIDE;
44 virtual void SetLinkTransitionType(PageTransition type) OVERRIDE; 46 virtual void SetLinkTransitionType(PageTransition type) OVERRIDE;
45 virtual int GetBindings() const OVERRIDE; 47 virtual int GetBindings() const OVERRIDE;
46 virtual void SetBindings(int bindings) OVERRIDE; 48 virtual void SetBindings(int bindings) OVERRIDE;
47 virtual void SetFrameXPath(const std::string& xpath) OVERRIDE; 49 virtual void SetFrameXPath(const std::string& xpath) OVERRIDE;
48 virtual void AddMessageHandler(WebUIMessageHandler* handler) OVERRIDE; 50 virtual void AddMessageHandler(WebUIMessageHandler* handler) OVERRIDE;
49 typedef base::Callback<void(const base::ListValue*)> MessageCallback; 51 typedef base::Callback<void(const base::ListValue*)> MessageCallback;
50 virtual void RegisterMessageCallback( 52 virtual void RegisterMessageCallback(
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 89
88 // A map of message name -> message handling callback. 90 // A map of message name -> message handling callback.
89 typedef std::map<std::string, MessageCallback> MessageCallbackMap; 91 typedef std::map<std::string, MessageCallback> MessageCallbackMap;
90 MessageCallbackMap message_callbacks_; 92 MessageCallbackMap message_callbacks_;
91 93
92 // Options that may be overridden by individual Web UI implementations. The 94 // Options that may be overridden by individual Web UI implementations. The
93 // bool options default to false. See the public getters for more information. 95 // bool options default to false. See the public getters for more information.
94 bool hide_favicon_; 96 bool hide_favicon_;
95 bool focus_location_bar_by_default_; 97 bool focus_location_bar_by_default_;
96 bool should_hide_url_; 98 bool should_hide_url_;
99 bool should_not_emphasize_host_;
Devlin 2013/03/27 15:59:52 Might be worth commenting (probably at the getters
Patrick Riordan 2013/03/27 19:43:28 Done.
97 string16 overridden_title_; // Defaults to empty string. 100 string16 overridden_title_; // Defaults to empty string.
98 PageTransition link_transition_type_; // Defaults to LINK. 101 PageTransition link_transition_type_; // Defaults to LINK.
99 int bindings_; // The bindings from BindingsPolicy that should be enabled for 102 int bindings_; // The bindings from BindingsPolicy that should be enabled for
100 // this page. 103 // this page.
101 104
102 // The WebUIMessageHandlers we own. 105 // The WebUIMessageHandlers we own.
103 std::vector<WebUIMessageHandler*> handlers_; 106 std::vector<WebUIMessageHandler*> handlers_;
104 107
105 // Non-owning pointer to the WebContents this WebUI is associated with. 108 // Non-owning pointer to the WebContents this WebUI is associated with.
106 WebContents* web_contents_; 109 WebContents* web_contents_;
107 110
108 // The path for the iframe this WebUI is embedded in (empty if not in an 111 // The path for the iframe this WebUI is embedded in (empty if not in an
109 // iframe). 112 // iframe).
110 std::string frame_xpath_; 113 std::string frame_xpath_;
111 114
112 scoped_ptr<WebUIController> controller_; 115 scoped_ptr<WebUIController> controller_;
113 116
114 DISALLOW_COPY_AND_ASSIGN(WebUIImpl); 117 DISALLOW_COPY_AND_ASSIGN(WebUIImpl);
115 }; 118 };
116 119
117 } // namespace content 120 } // namespace content
118 121
119 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ 122 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698