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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_gtk.h

Issue 4399003: Deleted code associated with --enable-gpu-rendering and... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gdk/gdk.h> 9 #include <gdk/gdk.h>
10 10
11 #include <vector> 11 #include <vector>
12 #include <string> 12 #include <string>
13 13
14 #include "base/scoped_ptr.h" 14 #include "base/scoped_ptr.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "chrome/browser/gtk/owned_widget_gtk.h" 16 #include "chrome/browser/gtk/owned_widget_gtk.h"
17 #include "chrome/browser/renderer_host/render_widget_host_view.h" 17 #include "chrome/browser/renderer_host/render_widget_host_view.h"
18 #include "gfx/native_widget_types.h" 18 #include "gfx/native_widget_types.h"
19 #include "gfx/rect.h" 19 #include "gfx/rect.h"
20 #include "webkit/glue/plugins/gtk_plugin_container_manager.h" 20 #include "webkit/glue/plugins/gtk_plugin_container_manager.h"
21 #include "webkit/glue/webcursor.h" 21 #include "webkit/glue/webcursor.h"
22 22
23 class RenderWidgetHost; 23 class RenderWidgetHost;
24 class GpuViewHost;
25 class GtkIMContextWrapper; 24 class GtkIMContextWrapper;
26 class GtkKeyBindingsHandler; 25 class GtkKeyBindingsHandler;
27 #if !defined(TOOLKIT_VIEWS) 26 #if !defined(TOOLKIT_VIEWS)
28 class MenuGtk; 27 class MenuGtk;
29 #endif 28 #endif
30 struct NativeWebKeyboardEvent; 29 struct NativeWebKeyboardEvent;
31 30
32 #if defined(OS_CHROMEOS) 31 #if defined(OS_CHROMEOS)
33 namespace views { 32 namespace views {
34 class TooltipWindowGtk; 33 class TooltipWindowGtk;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual void DidUpdateBackingStore( 74 virtual void DidUpdateBackingStore(
76 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, 75 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy,
77 const std::vector<gfx::Rect>& copy_rects); 76 const std::vector<gfx::Rect>& copy_rects);
78 virtual void RenderViewGone(); 77 virtual void RenderViewGone();
79 virtual void Destroy(); 78 virtual void Destroy();
80 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {} 79 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {}
81 virtual void SetTooltipText(const std::wstring& tooltip_text); 80 virtual void SetTooltipText(const std::wstring& tooltip_text);
82 virtual void SelectionChanged(const std::string& text); 81 virtual void SelectionChanged(const std::string& text);
83 virtual void ShowingContextMenu(bool showing); 82 virtual void ShowingContextMenu(bool showing);
84 virtual BackingStore* AllocBackingStore(const gfx::Size& size); 83 virtual BackingStore* AllocBackingStore(const gfx::Size& size);
85 virtual VideoLayer* AllocVideoLayer(const gfx::Size& size);
86 virtual void SetBackground(const SkBitmap& background); 84 virtual void SetBackground(const SkBitmap& background);
87 virtual void CreatePluginContainer(gfx::PluginWindowHandle id); 85 virtual void CreatePluginContainer(gfx::PluginWindowHandle id);
88 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id); 86 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id);
89 virtual void SetVisuallyDeemphasized(bool deemphasized); 87 virtual void SetVisuallyDeemphasized(bool deemphasized);
90 virtual bool ContainsNativeView(gfx::NativeView native_view) const; 88 virtual bool ContainsNativeView(gfx::NativeView native_view) const;
91 89
92 gfx::NativeView native_view() const { return view_.get(); } 90 gfx::NativeView native_view() const { return view_.get(); }
93 91
94 // If the widget is aligned with an edge of the monitor its on and the user 92 // If the widget is aligned with an edge of the monitor its on and the user
95 // attempts to drag past that edge we track the number of times it has 93 // attempts to drag past that edge we track the number of times it has
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 GtkWindowType window_type, 129 GtkWindowType window_type,
132 const gfx::Rect& pos, // Ignored if is_fullscreen is true. 130 const gfx::Rect& pos, // Ignored if is_fullscreen is true.
133 bool is_fullscreen); 131 bool is_fullscreen);
134 132
135 // The model object. 133 // The model object.
136 RenderWidgetHost* host_; 134 RenderWidgetHost* host_;
137 135
138 // The native UI widget. 136 // The native UI widget.
139 OwnedWidgetGtk view_; 137 OwnedWidgetGtk view_;
140 138
141 // Cached value of --enable-gpu-rendering for out-of-process painting.
142 bool enable_gpu_rendering_;
143
144 // Non-NULL when we're doing out-of-process painting.
145 scoped_ptr<GpuViewHost> gpu_view_host_;
146
147 // This is true when we are currently painting and thus should handle extra 139 // This is true when we are currently painting and thus should handle extra
148 // paint requests by expanding the invalid rect rather than actually 140 // paint requests by expanding the invalid rect rather than actually
149 // painting. 141 // painting.
150 bool about_to_validate_and_paint_; 142 bool about_to_validate_and_paint_;
151 143
152 // This is the rectangle which we'll paint. 144 // This is the rectangle which we'll paint.
153 gfx::Rect invalid_rect_; 145 gfx::Rect invalid_rect_;
154 146
155 // Whether or not this widget is hidden. 147 // Whether or not this widget is hidden.
156 bool is_hidden_; 148 bool is_hidden_;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // indicate the top edge, positive the bottom. 209 // indicate the top edge, positive the bottom.
218 int dragged_at_vertical_edge_; 210 int dragged_at_vertical_edge_;
219 211
220 #if defined(OS_CHROMEOS) 212 #if defined(OS_CHROMEOS)
221 // Custimized tooltip window. 213 // Custimized tooltip window.
222 scoped_ptr<views::TooltipWindowGtk> tooltip_window_; 214 scoped_ptr<views::TooltipWindowGtk> tooltip_window_;
223 #endif // defined(OS_CHROMEOS) 215 #endif // defined(OS_CHROMEOS)
224 }; 216 };
225 217
226 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 218 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view.h ('k') | chrome/browser/renderer_host/render_widget_host_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698