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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 8570010: Moving media-related files from webkit/glue/ to webkit/media/. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: minor fixes Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/media/media_stream_impl.h ('k') | content/renderer/render_view_impl.cc » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 25 matching lines...) Expand all
36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystem.h" 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystem.h"
37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h"
38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h"
39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h"
40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClie nt.h" 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClie nt.h"
41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h" 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h"
42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h"
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h"
45 #include "ui/gfx/surface/transport_dib.h" 45 #include "ui/gfx/surface/transport_dib.h"
46 #include "webkit/glue/webmediaplayer_delegate.h"
47 #include "webkit/glue/webpreferences.h" 46 #include "webkit/glue/webpreferences.h"
47 #include "webkit/media/webmediaplayer_delegate.h"
48 #include "webkit/plugins/npapi/webplugin_page_delegate.h" 48 #include "webkit/plugins/npapi/webplugin_page_delegate.h"
49 49
50 #if defined(OS_WIN) 50 #if defined(OS_WIN)
51 // RenderViewImpl is a diamond-shaped hierarchy, with WebWidgetClient at the 51 // RenderViewImpl is a diamond-shaped hierarchy, with WebWidgetClient at the
52 // root. VS warns when we inherit the WebWidgetClient method implementations 52 // root. VS warns when we inherit the WebWidgetClient method implementations
53 // from RenderWidget. It's safe to ignore that warning. 53 // from RenderWidget. It's safe to ignore that warning.
54 #pragma warning(disable: 4250) 54 #pragma warning(disable: 4250)
55 #endif 55 #endif
56 56
57 class DeviceOrientationDispatcher; 57 class DeviceOrientationDispatcher;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // 145 //
146 // RenderView is an object that manages a WebView object, and provides a 146 // RenderView is an object that manages a WebView object, and provides a
147 // communication interface with an embedding application process 147 // communication interface with an embedding application process
148 // 148 //
149 class RenderViewImpl : public RenderWidget, 149 class RenderViewImpl : public RenderWidget,
150 public WebKit::WebViewClient, 150 public WebKit::WebViewClient,
151 public WebKit::WebFrameClient, 151 public WebKit::WebFrameClient,
152 public WebKit::WebPageSerializerClient, 152 public WebKit::WebPageSerializerClient,
153 public content::RenderView, 153 public content::RenderView,
154 public webkit::npapi::WebPluginPageDelegate, 154 public webkit::npapi::WebPluginPageDelegate,
155 public webkit_glue::WebMediaPlayerDelegate, 155 public webkit_media::WebMediaPlayerDelegate,
156 public base::SupportsWeakPtr<RenderViewImpl> { 156 public base::SupportsWeakPtr<RenderViewImpl> {
157 public: 157 public:
158 // Creates a new RenderView. The parent_hwnd specifies a HWND to use as the 158 // Creates a new RenderView. The parent_hwnd specifies a HWND to use as the
159 // parent of the WebView HWND that will be created. If this is a blocked 159 // parent of the WebView HWND that will be created. If this is a blocked
160 // popup or as a new tab, opener_id is the routing ID of the RenderView 160 // popup or as a new tab, opener_id is the routing ID of the RenderView
161 // responsible for creating this RenderView (corresponding to parent_hwnd). 161 // responsible for creating this RenderView (corresponding to parent_hwnd).
162 // |counter| is either a currently initialized counter, or NULL (in which case 162 // |counter| is either a currently initialized counter, or NULL (in which case
163 // we treat this RenderView as a top level window). 163 // we treat this RenderView as a top level window).
164 CONTENT_EXPORT static RenderViewImpl* Create( 164 CONTENT_EXPORT static RenderViewImpl* Create(
165 gfx::NativeViewId parent_hwnd, 165 gfx::NativeViewId parent_hwnd,
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate( 579 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate(
580 const FilePath& file_path, 580 const FilePath& file_path,
581 const std::string& mime_type); 581 const std::string& mime_type);
582 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle); 582 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle);
583 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle); 583 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle);
584 virtual void DidMovePlugin(const webkit::npapi::WebPluginGeometry& move); 584 virtual void DidMovePlugin(const webkit::npapi::WebPluginGeometry& move);
585 virtual void DidStartLoadingForPlugin(); 585 virtual void DidStartLoadingForPlugin();
586 virtual void DidStopLoadingForPlugin(); 586 virtual void DidStopLoadingForPlugin();
587 virtual WebKit::WebCookieJar* GetCookieJar(); 587 virtual WebKit::WebCookieJar* GetCookieJar();
588 588
589 // webkit_glue::WebMediaPlayerDelegate implementation ------------------------ 589 // webkit_media::WebMediaPlayerDelegate implementation -----------------------
590 590
591 virtual void DidPlay(webkit_glue::WebMediaPlayerImpl* player) OVERRIDE; 591 virtual void DidPlay(webkit_media::WebMediaPlayerImpl* player) OVERRIDE;
592 virtual void DidPause(webkit_glue::WebMediaPlayerImpl* player) OVERRIDE; 592 virtual void DidPause(webkit_media::WebMediaPlayerImpl* player) OVERRIDE;
593 virtual void PlayerGone(webkit_glue::WebMediaPlayerImpl* player) OVERRIDE; 593 virtual void PlayerGone(webkit_media::WebMediaPlayerImpl* player) OVERRIDE;
594 594
595 // Please do not add your stuff randomly to the end here. If there is an 595 // Please do not add your stuff randomly to the end here. If there is an
596 // appropriate section, add it there. If not, there are some random functions 596 // appropriate section, add it there. If not, there are some random functions
597 // nearer to the top you can add it to. 597 // nearer to the top you can add it to.
598 virtual void DidFlushPaint(); 598 virtual void DidFlushPaint();
599 599
600 // Cannot use std::set unfortunately since linked_ptr<> does not support 600 // Cannot use std::set unfortunately since linked_ptr<> does not support
601 // operator<. 601 // operator<.
602 typedef std::vector<linked_ptr<webkit_glue::ImageResourceFetcher> > 602 typedef std::vector<linked_ptr<webkit_glue::ImageResourceFetcher> >
603 ImageResourceFetcherList; 603 ImageResourceFetcherList;
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
1212 // bunch of stuff, you should probably create a helper class and put your 1212 // bunch of stuff, you should probably create a helper class and put your
1213 // data and methods on that to avoid bloating RenderView more. You can 1213 // data and methods on that to avoid bloating RenderView more. You can
1214 // use the Observer interface to filter IPC messages and receive frame change 1214 // use the Observer interface to filter IPC messages and receive frame change
1215 // notifications. 1215 // notifications.
1216 // --------------------------------------------------------------------------- 1216 // ---------------------------------------------------------------------------
1217 1217
1218 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1218 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1219 }; 1219 };
1220 1220
1221 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1221 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_impl.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698