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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.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
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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
7 7
8 #if defined(OS_MACOSX) 8 #if defined(OS_MACOSX)
9 #include <OpenGL/OpenGL.h> 9 #include <OpenGL/OpenGL.h>
10 #endif 10 #endif
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 public: 44 public:
45 virtual ~RenderWidgetHostViewBase(); 45 virtual ~RenderWidgetHostViewBase();
46 46
47 // RenderWidgetHostViewPort implementation. 47 // RenderWidgetHostViewPort implementation.
48 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 48 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
49 virtual void SelectionChanged(const string16& text, 49 virtual void SelectionChanged(const string16& text,
50 size_t offset, 50 size_t offset,
51 const ui::Range& range) OVERRIDE; 51 const ui::Range& range) OVERRIDE;
52 virtual void SetBackground(const SkBitmap& background) OVERRIDE; 52 virtual void SetBackground(const SkBitmap& background) OVERRIDE;
53 virtual const SkBitmap& GetBackground() OVERRIDE; 53 virtual const SkBitmap& GetBackground() OVERRIDE;
54 virtual gfx::Size GetPhysicalBackingSize() const OVERRIDE;
54 virtual bool IsShowingContextMenu() const OVERRIDE; 55 virtual bool IsShowingContextMenu() const OVERRIDE;
55 virtual void SetShowingContextMenu(bool showing_menu) OVERRIDE; 56 virtual void SetShowingContextMenu(bool showing_menu) OVERRIDE;
56 virtual string16 GetSelectedText() const OVERRIDE; 57 virtual string16 GetSelectedText() const OVERRIDE;
57 virtual bool IsMouseLocked() OVERRIDE; 58 virtual bool IsMouseLocked() OVERRIDE;
58 virtual void UnhandledWheelEvent( 59 virtual void UnhandledWheelEvent(
59 const WebKit::WebMouseWheelEvent& event) OVERRIDE; 60 const WebKit::WebMouseWheelEvent& event) OVERRIDE;
60 virtual void SetPopupType(WebKit::WebPopupType popup_type) OVERRIDE; 61 virtual void SetPopupType(WebKit::WebPopupType popup_type) OVERRIDE;
61 virtual WebKit::WebPopupType GetPopupType() OVERRIDE; 62 virtual WebKit::WebPopupType GetPopupType() OVERRIDE;
62 virtual BrowserAccessibilityManager* 63 virtual BrowserAccessibilityManager*
63 GetBrowserAccessibilityManager() const OVERRIDE; 64 GetBrowserAccessibilityManager() const OVERRIDE;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 134
134 gfx::Rect current_display_area_; 135 gfx::Rect current_display_area_;
135 float current_device_scale_factor_; 136 float current_device_scale_factor_;
136 137
137 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 138 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
138 }; 139 };
139 140
140 } // namespace content 141 } // namespace content
141 142
142 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 143 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698