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

Unified Diff: content/renderer/render_view_pepper_helper.h

Issue 20987009: Rename PepperPluginDelegateImpl to PepperHelperImpl after getting rid of the PluginDelegate interfa… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 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 | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_view_pepper_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_pepper_helper.h
===================================================================
--- content/renderer/render_view_pepper_helper.h (revision 214385)
+++ content/renderer/render_view_pepper_helper.h (working copy)
@@ -1,100 +0,0 @@
-// Copyright (c) 2012 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.
-
-// This interface is used by RenderView to talk to the pepper plugin delegate.
-#ifndef CONTENT_RENDERER_RENDER_VIEW_PEPPER_HELPER_H
-#define CONTENT_RENDERER_RENDER_VIEW_PEPPER_HELPER_H
-
-#include <string>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-#include "base/platform_file.h"
-#include "base/process/process.h"
-#include "content/common/content_export.h"
-#include "ui/base/ime/text_input_type.h"
-
-class TransportDIB;
-
-namespace gfx {
-class Rect;
-}
-
-namespace IPC {
-struct ChannelHandle;
-}
-
-namespace ui {
-class Range;
-}
-
-namespace WebKit {
-struct WebCompositionUnderline;
-struct WebPluginParams;
-class WebPlugin;
-}
-
-namespace content {
-class PepperPluginInstanceImpl;
-struct WebPluginInfo;
-
-class CONTENT_EXPORT RenderViewPepperHelper {
- public:
- RenderViewPepperHelper() {}
- virtual ~RenderViewPepperHelper();
-
- virtual WebKit::WebPlugin* CreatePepperWebPlugin(
- const WebPluginInfo& webplugin_info,
- const WebKit::WebPluginParams& params);
-
- // Called by RenderView to implement the corresponding function in its base
- // class RenderWidget (see that for more).
- virtual PepperPluginInstanceImpl* GetBitmapForOptimizedPluginPaint(
- const gfx::Rect& paint_bounds,
- TransportDIB** dib,
- gfx::Rect* location,
- gfx::Rect* clip,
- float* scale_factor);
-
- // Called by RenderView to tell us about painting events, these two functions
- // just correspond to the WillInitiatePaint, DidInitiatePaint and
- // DidFlushPaint hooks in RenderView.
- virtual void ViewWillInitiatePaint() {}
- virtual void ViewInitiatedPaint() {}
- virtual void ViewFlushedPaint() {}
-
- // Notification that the render view has been focused or defocused. This
- // notifies all of the plugins.
- virtual void OnSetFocus(bool has_focus) {}
-
- // Notification that the page visibility has changed. The default is visible.
- virtual void PageVisibilityChanged(bool is_visible) {}
-
- // IME status.
- virtual bool IsPluginFocused() const;
- virtual gfx::Rect GetCaretBounds() const;
- virtual ui::TextInputType GetTextInputType() const;
- virtual bool IsPluginAcceptingCompositionEvents() const;
- virtual bool CanComposeInline() const;
- virtual void GetSurroundingText(string16* text, ui::Range* range) const {}
-
- // IME events.
- virtual void OnImeSetComposition(
- const string16& text,
- const std::vector<WebKit::WebCompositionUnderline>& underlines,
- int selection_start,
- int selection_end) {}
- virtual void OnImeConfirmComposition(const string16& text) {}
-
- // Notification that a mouse event has arrived at the render view.
- virtual void WillHandleMouseEvent() {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(RenderViewPepperHelper);
-};
-
-} // namespace content
-
-#endif // CONTENT_RENDERER_RENDER_VIEW_PEPPER_HELPER_H
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_view_pepper_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698