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

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: fix some new gfx::Screen additions 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 24 matching lines...) Expand all
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, int mouse_event_x, 63 bool scroll_down, bool scroll_far, int mouse_event_x,
63 int mouse_event_y) OVERRIDE; 64 int mouse_event_y) OVERRIDE;
64 65
65 void SetBrowserAccessibilityManager(BrowserAccessibilityManager* manager); 66 void SetBrowserAccessibilityManager(BrowserAccessibilityManager* manager);
66 67
67 // Notification that a resize or move session ended on the native widget. 68 // Notification that a resize or move session ended on the native widget.
68 void UpdateScreenInfo(); 69 void UpdateScreenInfo(gfx::NativeView view);
69 70
70 #if defined(OS_WIN) 71 #if defined(OS_WIN)
71 // The callback that DetachPluginsHelper calls for each child window. Call 72 // The callback that DetachPluginsHelper calls for each child window. Call
72 // this directly if you want to do custom filtering on plugin windows first. 73 // this directly if you want to do custom filtering on plugin windows first.
73 static void DetachPluginWindowsCallback(HWND window); 74 static void DetachPluginWindowsCallback(HWND window);
74 #endif 75 #endif
75 76
76 protected: 77 protected:
77 // Interface class only, do not construct. 78 // Interface class only, do not construct.
78 RenderWidgetHostViewBase(); 79 RenderWidgetHostViewBase();
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 127
127 gfx::Rect current_display_area_; 128 gfx::Rect current_display_area_;
128 float current_device_scale_factor_; 129 float current_device_scale_factor_;
129 130
130 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 131 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
131 }; 132 };
132 133
133 } // namespace content 134 } // namespace content
134 135
135 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 136 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698