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

Side by Side Diff: chrome/browser/guest_view/web_view/chrome_web_view_guest_delegate.h

Issue 497843002: GuestViews should be able to specify task manager entries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 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_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_
6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ 6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_
7 7
8 #include "chrome/browser/guest_view/web_view/web_view_guest.h" 8 #include "chrome/browser/guest_view/web_view/web_view_guest.h"
9 #include "extensions/browser/guest_view/web_view/web_view_guest_delegate.h" 9 #include "extensions/browser/guest_view/web_view/web_view_guest_delegate.h"
10 10
11 #if defined(OS_CHROMEOS) 11 #if defined(OS_CHROMEOS)
12 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" 12 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
13 #endif 13 #endif
14 14
15 class RenderViewContextMenu; 15 class RenderViewContextMenu;
16 16
17 namespace ui { 17 namespace ui {
18 class SimpleMenuModel; 18 class SimpleMenuModel;
19 } // namespace ui 19 } // namespace ui
20 20
21 class ChromeWebViewGuestDelegate : public extensions::WebViewGuestDelegate { 21 class ChromeWebViewGuestDelegate : public extensions::WebViewGuestDelegate {
22 public : 22 public :
23 explicit ChromeWebViewGuestDelegate( 23 explicit ChromeWebViewGuestDelegate(
24 extensions::WebViewGuest* web_view_guest); 24 extensions::WebViewGuest* web_view_guest);
25 virtual ~ChromeWebViewGuestDelegate(); 25 virtual ~ChromeWebViewGuestDelegate();
26 26
27 // WebViewGuestDelegate implementation. 27 // WebViewGuestDelegate implementation.
28 virtual base::string16 GetTaskName() const OVERRIDE;
28 virtual double GetZoom() OVERRIDE; 29 virtual double GetZoom() OVERRIDE;
29 virtual bool HandleContextMenu( 30 virtual bool HandleContextMenu(
30 const content::ContextMenuParams& params) OVERRIDE; 31 const content::ContextMenuParams& params) OVERRIDE;
31 virtual void OnAttachWebViewHelpers(content::WebContents* contents) OVERRIDE; 32 virtual void OnAttachWebViewHelpers(content::WebContents* contents) OVERRIDE;
32 virtual void OnDidCommitProvisionalLoadForFrame(bool is_main_frame) OVERRIDE; 33 virtual void OnDidCommitProvisionalLoadForFrame(bool is_main_frame) OVERRIDE;
33 virtual void OnDidInitialize() OVERRIDE; 34 virtual void OnDidInitialize() OVERRIDE;
34 virtual void OnDocumentLoadedInFrame( 35 virtual void OnDocumentLoadedInFrame(
35 content::RenderFrameHost* render_frame_host) OVERRIDE; 36 content::RenderFrameHost* render_frame_host) OVERRIDE;
36 virtual void OnGuestDestroyed() OVERRIDE; 37 virtual void OnGuestDestroyed() OVERRIDE;
37 virtual void OnSetZoom(double zoom_factor) OVERRIDE; 38 virtual void OnSetZoom(double zoom_factor) OVERRIDE;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // Subscription to receive notifications on changes to a11y settings. 77 // Subscription to receive notifications on changes to a11y settings.
77 scoped_ptr<chromeos::AccessibilityStatusSubscription> 78 scoped_ptr<chromeos::AccessibilityStatusSubscription>
78 accessibility_subscription_; 79 accessibility_subscription_;
79 #endif 80 #endif
80 81
81 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewGuestDelegate); 82 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewGuestDelegate);
82 }; 83 };
83 84
84 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ 85 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_
85 86
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698