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

Unified Diff: trunk/src/chrome/browser/guest_view/web_view/chrome_web_view_guest_delegate.h

Issue 473263005: Revert 291002 "Introduce WebViewGuestDelegate." (Closed) Base URL: svn://svn.chromium.org/chrome/
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | trunk/src/chrome/browser/guest_view/web_view/chrome_web_view_guest_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/browser/guest_view/web_view/chrome_web_view_guest_delegate.h
===================================================================
--- trunk/src/chrome/browser/guest_view/web_view/chrome_web_view_guest_delegate.h (revision 291025)
+++ trunk/src/chrome/browser/guest_view/web_view/chrome_web_view_guest_delegate.h (working copy)
@@ -1,85 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_
-#define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_
-
-#include "chrome/browser/guest_view/web_view/web_view_guest.h"
-#include "extensions/browser/guest_view/web_view/web_view_guest_delegate.h"
-
-#if defined(OS_CHROMEOS)
-#include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
-#endif
-
-class RenderViewContextMenu;
-
-namespace ui {
-class SimpleMenuModel;
-} // namespace ui
-
-class ChromeWebViewGuestDelegate : public extensions::WebViewGuestDelegate {
- public :
- explicit ChromeWebViewGuestDelegate(
- extensions::WebViewGuest* web_view_guest);
- virtual ~ChromeWebViewGuestDelegate();
-
- // WebViewGuestDelegate implementation.
- virtual double GetZoom() OVERRIDE;
- virtual bool HandleContextMenu(
- const content::ContextMenuParams& params) OVERRIDE;
- virtual void OnAttachWebViewHelpers(content::WebContents* contents) OVERRIDE;
- virtual void OnDidCommitProvisionalLoadForFrame(bool is_main_frame) OVERRIDE;
- virtual void OnDidInitialize() OVERRIDE;
- virtual void OnDocumentLoadedInFrame(
- content::RenderFrameHost* render_frame_host) OVERRIDE;
- virtual void OnGuestDestroyed() OVERRIDE;
- virtual void OnSetZoom(double zoom_factor) OVERRIDE;
- virtual void OnShowContextMenu(
- int request_id,
- const MenuItemVector* items) OVERRIDE;
-
- private:
- content::WebContents* guest_web_contents() const {
- return web_view_guest_->guest_web_contents();
- }
-
- // Returns the top level items (ignoring submenus) as Value.
- static scoped_ptr<base::ListValue> MenuModelToValue(
- const ui::SimpleMenuModel& menu_model);
-
- void InjectChromeVoxIfNeeded(content::RenderViewHost* render_view_host);
-
-#if defined(OS_CHROMEOS)
- // Notification of a change in the state of an accessibility setting.
- void OnAccessibilityStatusChanged(
- const chromeos::AccessibilityStatusEventDetails& details);
-#endif
-
- // A counter to generate a unique request id for a context menu request.
- // We only need the ids to be unique for a given WebViewGuest.
- int pending_context_menu_request_id_;
-
- // Set to |true| if ChromeVox was already injected in main frame.
- bool chromevox_injected_;
-
- // Stores the current zoom factor.
- double current_zoom_factor_;
-
- // Holds the RenderViewContextMenu that has been built but yet to be
- // shown. This is .Reset() after ShowContextMenu().
- scoped_ptr<RenderViewContextMenu> pending_menu_;
-
- extensions::WebViewGuest* web_view_guest_;
-
-#if defined(OS_CHROMEOS)
- // Subscription to receive notifications on changes to a11y settings.
- scoped_ptr<chromeos::AccessibilityStatusSubscription>
- accessibility_subscription_;
-#endif
-
- DISALLOW_COPY_AND_ASSIGN(ChromeWebViewGuestDelegate);
-};
-
-#endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_
-
« no previous file with comments | « no previous file | trunk/src/chrome/browser/guest_view/web_view/chrome_web_view_guest_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698