OLD | NEW |
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 CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 return web_app_info_; | 90 return web_app_info_; |
91 } | 91 } |
92 | 92 |
93 // If an app extension has been explicitly set for this WebContents its icon | 93 // If an app extension has been explicitly set for this WebContents its icon |
94 // is returned. | 94 // is returned. |
95 // | 95 // |
96 // NOTE: the returned icon is larger than 16x16 (its size is | 96 // NOTE: the returned icon is larger than 16x16 (its size is |
97 // extension_misc::EXTENSION_ICON_SMALLISH). | 97 // extension_misc::EXTENSION_ICON_SMALLISH). |
98 SkBitmap* GetExtensionAppIcon(); | 98 SkBitmap* GetExtensionAppIcon(); |
99 | 99 |
100 content::WebContents* web_contents() const { | |
101 return content::WebContentsObserver::web_contents(); | |
102 } | |
103 | |
104 ScriptExecutor* script_executor() { | 100 ScriptExecutor* script_executor() { |
105 return script_executor_.get(); | 101 return script_executor_.get(); |
106 } | 102 } |
107 | 103 |
108 LocationBarController* location_bar_controller() { | 104 LocationBarController* location_bar_controller() { |
109 return location_bar_controller_.get(); | 105 return location_bar_controller_.get(); |
110 } | 106 } |
111 | 107 |
112 ActiveTabPermissionGranter* active_tab_permission_granter() { | 108 ActiveTabPermissionGranter* active_tab_permission_granter() { |
113 return active_tab_permission_granter_.get(); | 109 return active_tab_permission_granter_.get(); |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 252 |
257 // Creates WebstoreInlineInstaller instances for inline install triggers. | 253 // Creates WebstoreInlineInstaller instances for inline install triggers. |
258 scoped_ptr<WebstoreInlineInstallerFactory> webstore_inline_installer_factory_; | 254 scoped_ptr<WebstoreInlineInstallerFactory> webstore_inline_installer_factory_; |
259 | 255 |
260 DISALLOW_COPY_AND_ASSIGN(TabHelper); | 256 DISALLOW_COPY_AND_ASSIGN(TabHelper); |
261 }; | 257 }; |
262 | 258 |
263 } // namespace extensions | 259 } // namespace extensions |
264 | 260 |
265 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ | 261 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ |
OLD | NEW |