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

Side by Side Diff: chrome/browser/notifications/balloon_host.h

Issue 1627024: Add ExtensionFunctionDispatcher::Delegate::GetAssociatedTabContents (Closed)
Patch Set: cr changes Created 10 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
« no previous file with comments | « chrome/browser/extensions/extension_tabs_module.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_NOTIFICATIONS_BALLOON_HOST_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/extensions/extension_function_dispatcher.h" 10 #include "chrome/browser/extensions/extension_function_dispatcher.h"
(...skipping 22 matching lines...) Expand all
33 33
34 // ExtensionFunctionDispatcher::Delegate overrides. 34 // ExtensionFunctionDispatcher::Delegate overrides.
35 virtual Browser* GetBrowser() const { 35 virtual Browser* GetBrowser() const {
36 // Notifications aren't associated with a particular browser. 36 // Notifications aren't associated with a particular browser.
37 return NULL; 37 return NULL;
38 } 38 }
39 virtual gfx::NativeView GetNativeViewOfHost() { 39 virtual gfx::NativeView GetNativeViewOfHost() {
40 // TODO(aa): Should this return the native view of the BalloonView*? 40 // TODO(aa): Should this return the native view of the BalloonView*?
41 return NULL; 41 return NULL;
42 } 42 }
43 virtual TabContents* associated_tab_contents() { return NULL; }
43 44
44 RenderViewHost* render_view_host() const { return render_view_host_; } 45 RenderViewHost* render_view_host() const { return render_view_host_; }
45 46
46 std::wstring GetSource() const { 47 std::wstring GetSource() const {
47 return balloon_->notification().display_source(); 48 return balloon_->notification().display_source();
48 } 49 }
49 50
50 // RenderViewHostDelegate overrides. 51 // RenderViewHostDelegate overrides.
51 virtual WebPreferences GetWebkitPrefs(); 52 virtual WebPreferences GetWebkitPrefs();
52 virtual SiteInstance* GetSiteInstance() const { 53 virtual SiteInstance* GetSiteInstance() const {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 137
137 // Common implementations of some RenderViewHostDelegate::View methods. 138 // Common implementations of some RenderViewHostDelegate::View methods.
138 RenderViewHostDelegateViewHelper delegate_view_helper_; 139 RenderViewHostDelegateViewHelper delegate_view_helper_;
139 140
140 // Handles requests to extension APIs. Will only be non-NULL if we are 141 // Handles requests to extension APIs. Will only be non-NULL if we are
141 // rendering a page from an extension. 142 // rendering a page from an extension.
142 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; 143 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_;
143 }; 144 };
144 145
145 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ 146 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_tabs_module.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698