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

Side by Side Diff: content/public/browser/render_widget_host.h

Issue 234533002: Remove a bunch of TOOLKIT_GTK in content/ and gpu/, as well as NPAPI plugins on linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, skip changing browser_main_loop.cc because of presubmit issues, will follow up Created 6 years, 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/native_web_keyboard_event.h" 10 #include "content/public/browser/native_web_keyboard_event.h"
11 #include "ipc/ipc_channel.h" 11 #include "ipc/ipc_channel.h"
12 #include "ipc/ipc_sender.h" 12 #include "ipc/ipc_sender.h"
13 #include "third_party/WebKit/public/web/WebInputEvent.h" 13 #include "third_party/WebKit/public/web/WebInputEvent.h"
14 #include "third_party/WebKit/public/web/WebTextDirection.h" 14 #include "third_party/WebKit/public/web/WebTextDirection.h"
15 #include "third_party/skia/include/core/SkBitmap.h" 15 #include "third_party/skia/include/core/SkBitmap.h"
16 #include "ui/gfx/size.h" 16 #include "ui/gfx/size.h"
17 #include "ui/surface/transport_dib.h" 17 #include "ui/surface/transport_dib.h"
18 18
19 #if defined(TOOLKIT_GTK) 19 #if defined(OS_MACOSX)
20 #include "ui/base/x/x11_util.h"
21 #elif defined(OS_MACOSX)
22 #include "skia/ext/platform_device.h" 20 #include "skia/ext/platform_device.h"
23 #endif 21 #endif
24 22
25 class SkBitmap; 23 class SkBitmap;
26 24
27 namespace gfx { 25 namespace gfx {
28 class Rect; 26 class Rect;
29 } 27 }
30 28
31 namespace blink { 29 namespace blink {
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 const gfx::Rect& src_rect, 184 const gfx::Rect& src_rect,
187 const gfx::Size& accelerated_dst_size, 185 const gfx::Size& accelerated_dst_size,
188 const base::Callback<void(bool, const SkBitmap&)>& callback, 186 const base::Callback<void(bool, const SkBitmap&)>& callback,
189 const SkBitmap::Config& bitmap_config) = 0; 187 const SkBitmap::Config& bitmap_config) = 0;
190 // Ensures that the view does not drop the backing store even when hidden. 188 // Ensures that the view does not drop the backing store even when hidden.
191 virtual bool CanCopyFromBackingStore() = 0; 189 virtual bool CanCopyFromBackingStore() = 0;
192 #if defined(OS_ANDROID) 190 #if defined(OS_ANDROID)
193 virtual void LockBackingStore() = 0; 191 virtual void LockBackingStore() = 0;
194 virtual void UnlockBackingStore() = 0; 192 virtual void UnlockBackingStore() = 0;
195 #endif 193 #endif
196 #if defined(TOOLKIT_GTK) 194 #if defined(OS_MACOSX)
197 // Paint the backing store into the target's |dest_rect|.
198 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect,
199 GdkWindow* target) = 0;
200 #elif defined(OS_MACOSX)
201 virtual gfx::Size GetBackingStoreSize() = 0; 195 virtual gfx::Size GetBackingStoreSize() = 0;
202 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect, 196 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect,
203 CGContextRef target) = 0; 197 CGContextRef target) = 0;
204 #endif 198 #endif
205 199
206 // Send a command to the renderer to turn on full accessibility. 200 // Send a command to the renderer to turn on full accessibility.
207 virtual void EnableFullAccessibilityMode() = 0; 201 virtual void EnableFullAccessibilityMode() = 0;
208 202
209 // Check whether this RenderWidget has full accessibility mode. 203 // Check whether this RenderWidget has full accessibility mode.
210 virtual bool IsFullAccessibilityModeForTesting() = 0; 204 virtual bool IsFullAccessibilityModeForTesting() = 0;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 // within content/. This method is necessary because 317 // within content/. This method is necessary because
324 // RenderWidgetHost is the root of a diamond inheritance pattern, so 318 // RenderWidgetHost is the root of a diamond inheritance pattern, so
325 // subclasses inherit it virtually, which removes our ability to 319 // subclasses inherit it virtually, which removes our ability to
326 // static_cast to the subclass. 320 // static_cast to the subclass.
327 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0; 321 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0;
328 }; 322 };
329 323
330 } // namespace content 324 } // namespace content
331 325
332 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 326 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/native_web_keyboard_event.h ('k') | content/public/common/common_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698