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

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

Issue 8082019: more content exports needed for unit_tests and browser_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert export of browser_accessibility_win for now Created 9 years, 2 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 | Annotate | Revision Log
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_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h"
12 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
14 #include "base/time.h" 15 #include "base/time.h"
16 #include "content/common/content_export.h"
15 #include "content/renderer/paint_aggregator.h" 17 #include "content/renderer/paint_aggregator.h"
16 #include "ipc/ipc_channel.h" 18 #include "ipc/ipc_channel.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidgetClient.h" 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidgetClient.h"
22 #include "third_party/skia/include/core/SkBitmap.h" 24 #include "third_party/skia/include/core/SkBitmap.h"
23 #include "ui/base/ime/text_input_type.h" 25 #include "ui/base/ime/text_input_type.h"
24 #include "ui/gfx/native_widget_types.h" 26 #include "ui/gfx/native_widget_types.h"
(...skipping 28 matching lines...) Expand all
53 struct WebPluginGeometry; 55 struct WebPluginGeometry;
54 } // namespace npapi 56 } // namespace npapi
55 57
56 namespace ppapi { 58 namespace ppapi {
57 class PluginInstance; 59 class PluginInstance;
58 } // namespace ppapi 60 } // namespace ppapi
59 } // namespace webkit 61 } // namespace webkit
60 62
61 // RenderWidget provides a communication bridge between a WebWidget and 63 // RenderWidget provides a communication bridge between a WebWidget and
62 // a RenderWidgetHost, the latter of which lives in a different process. 64 // a RenderWidgetHost, the latter of which lives in a different process.
63 class RenderWidget : public IPC::Channel::Listener, 65 class CONTENT_EXPORT RenderWidget
64 public IPC::Message::Sender, 66 : public IPC::Channel::Listener,
65 virtual public WebKit::WebWidgetClient, 67 public IPC::Message::Sender,
66 public base::RefCounted<RenderWidget> { 68 NON_EXPORTED_BASE(virtual public WebKit::WebWidgetClient),
69 public base::RefCounted<RenderWidget> {
67 public: 70 public:
68 // Creates a new RenderWidget. The opener_id is the routing ID of the 71 // Creates a new RenderWidget. The opener_id is the routing ID of the
69 // RenderView that this widget lives inside. The render_thread is any 72 // RenderView that this widget lives inside. The render_thread is any
70 // RenderThreadBase implementation, mostly commonly RenderThread::current(). 73 // RenderThreadBase implementation, mostly commonly RenderThread::current().
71 static RenderWidget* Create(int32 opener_id, 74 static RenderWidget* Create(int32 opener_id,
72 RenderThreadBase* render_thread, 75 RenderThreadBase* render_thread,
73 WebKit::WebPopupType popup_type); 76 WebKit::WebPopupType popup_type);
74 77
75 // Creates a WebWidget based on the popup type. 78 // Creates a WebWidget based on the popup type.
76 static WebKit::WebWidget* CreateWebWidget(RenderWidget* render_widget); 79 static WebKit::WebWidget* CreateWebWidget(RenderWidget* render_widget);
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 bool animation_task_posted_; 448 bool animation_task_posted_;
446 bool invalidation_task_posted_; 449 bool invalidation_task_posted_;
447 450
448 bool has_disable_gpu_vsync_switch_; 451 bool has_disable_gpu_vsync_switch_;
449 base::TimeTicks last_do_deferred_update_time_; 452 base::TimeTicks last_do_deferred_update_time_;
450 453
451 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 454 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
452 }; 455 };
453 456
454 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 457 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698