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

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

Issue 12328080: Plumb physical backing size from RWHV to renderer CC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust for call renamed to GetViewportSizePix() Created 7 years, 9 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
« no previous file with comments | « content/renderer/render_widget.cc ('k') | content/renderer/render_widget_fullscreen_pepper.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) 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_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 10 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 virtual void DidInitiatePaint() OVERRIDE; 82 virtual void DidInitiatePaint() OVERRIDE;
83 virtual void DidFlushPaint() OVERRIDE; 83 virtual void DidFlushPaint() OVERRIDE;
84 virtual void Close() OVERRIDE; 84 virtual void Close() OVERRIDE;
85 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( 85 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint(
86 const gfx::Rect& paint_bounds, 86 const gfx::Rect& paint_bounds,
87 TransportDIB** dib, 87 TransportDIB** dib,
88 gfx::Rect* location, 88 gfx::Rect* location,
89 gfx::Rect* clip, 89 gfx::Rect* clip,
90 float* scale_factor) OVERRIDE; 90 float* scale_factor) OVERRIDE;
91 virtual void OnResize(const gfx::Size& new_size, 91 virtual void OnResize(const gfx::Size& new_size,
92 const gfx::Size& physical_backing_size,
92 const gfx::Rect& resizer_rect, 93 const gfx::Rect& resizer_rect,
93 bool is_fullscreen) OVERRIDE; 94 bool is_fullscreen) OVERRIDE;
94 95
95 // RenderWidgetFullscreen API. 96 // RenderWidgetFullscreen API.
96 virtual WebKit::WebWidget* CreateWebWidget() OVERRIDE; 97 virtual WebKit::WebWidget* CreateWebWidget() OVERRIDE;
97 98
98 // RenderWidget overrides. 99 // RenderWidget overrides.
99 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE; 100 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE;
100 virtual void Composite() OVERRIDE; 101 virtual void Composite() OVERRIDE;
101 102
(...skipping 26 matching lines...) Expand all
128 base::WeakPtrFactory<RenderWidgetFullscreenPepper> weak_ptr_factory_; 129 base::WeakPtrFactory<RenderWidgetFullscreenPepper> weak_ptr_factory_;
129 130
130 scoped_ptr<MouseLockDispatcher> mouse_lock_dispatcher_; 131 scoped_ptr<MouseLockDispatcher> mouse_lock_dispatcher_;
131 132
132 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); 133 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper);
133 }; 134 };
134 135
135 } // namespace content 136 } // namespace content
136 137
137 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ 138 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | content/renderer/render_widget_fullscreen_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698