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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.h

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 8 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) 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
11 11
12 #if defined(TOOLKIT_GTK) 12 #if defined(TOOLKIT_GTK)
13 #include <gdk/gdk.h> 13 #include <gdk/gdk.h>
14 #endif 14 #endif
15 15
16 #include <string> 16 #include <string>
17 #include <vector> 17 #include <vector>
18 18
19 #include "base/memory/scoped_ptr.h" 19 #include "base/memory/scoped_ptr.h"
20 #include "base/callback_forward.h" 20 #include "base/callback_forward.h"
21 #include "content/common/content_export.h" 21 #include "content/common/content_export.h"
22 #include "content/port/browser/render_widget_host_view_port.h" 22 #include "content/port/browser/render_widget_host_view_port.h"
23 #include "ui/base/range/range.h" 23 #include "ui/base/range/range.h"
24 #include "ui/gfx/native_widget_types.h"
24 #include "ui/gfx/rect.h" 25 #include "ui/gfx/rect.h"
25 26
26 namespace content { 27 namespace content {
27 28
28 class RenderWidgetHostImpl; 29 class RenderWidgetHostImpl;
29 30
30 // Basic implementation shared by concrete RenderWidgetHostView 31 // Basic implementation shared by concrete RenderWidgetHostView
31 // subclasses. 32 // subclasses.
32 // 33 //
33 // Note that nothing should use this class, except concrete subclasses 34 // Note that nothing should use this class, except concrete subclasses
(...skipping 23 matching lines...) Expand all
57 virtual void SetPopupType(WebKit::WebPopupType popup_type) OVERRIDE; 58 virtual void SetPopupType(WebKit::WebPopupType popup_type) OVERRIDE;
58 virtual WebKit::WebPopupType GetPopupType() OVERRIDE; 59 virtual WebKit::WebPopupType GetPopupType() OVERRIDE;
59 virtual BrowserAccessibilityManager* 60 virtual BrowserAccessibilityManager*
60 GetBrowserAccessibilityManager() const OVERRIDE; 61 GetBrowserAccessibilityManager() const OVERRIDE;
61 virtual SmoothScrollGesture* CreateSmoothScrollGesture( 62 virtual SmoothScrollGesture* CreateSmoothScrollGesture(
62 bool scroll_down, bool scroll_far) OVERRIDE; 63 bool scroll_down, bool scroll_far) OVERRIDE;
63 64
64 void SetBrowserAccessibilityManager(BrowserAccessibilityManager* manager); 65 void SetBrowserAccessibilityManager(BrowserAccessibilityManager* manager);
65 66
66 // Notification that a resize or move session ended on the native widget. 67 // Notification that a resize or move session ended on the native widget.
67 void UpdateScreenInfo(); 68 void UpdateScreenInfo(gfx::NativeView view);
68 69
69 #if defined(OS_WIN) 70 #if defined(OS_WIN)
70 // The callback that DetachPluginsHelper calls for each child window. Call 71 // The callback that DetachPluginsHelper calls for each child window. Call
71 // this directly if you want to do custom filtering on plugin windows first. 72 // this directly if you want to do custom filtering on plugin windows first.
72 static void DetachPluginWindowsCallback(HWND window); 73 static void DetachPluginWindowsCallback(HWND window);
73 #endif 74 #endif
74 75
75 protected: 76 protected:
76 // Interface class only, do not construct. 77 // Interface class only, do not construct.
77 RenderWidgetHostViewBase(); 78 RenderWidgetHostViewBase();
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 126
126 gfx::Rect current_display_area_; 127 gfx::Rect current_display_area_;
127 float current_device_scale_factor_; 128 float current_device_scale_factor_;
128 129
129 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 130 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
130 }; 131 };
131 132
132 } // namespace content 133 } // namespace content
133 134
134 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 135 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698