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

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

Issue 5996003: Revert "Revert 69755 - Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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 "app/animation_delegate.h" 14 #include "app/animation_delegate.h"
15 #include "app/slide_animation.h" 15 #include "app/slide_animation.h"
16 #include "base/scoped_ptr.h" 16 #include "base/scoped_ptr.h"
17 #include "base/time.h" 17 #include "base/time.h"
18 #include "chrome/browser/gtk/owned_widget_gtk.h" 18 #include "chrome/browser/gtk/owned_widget_gtk.h"
19 #include "chrome/browser/renderer_host/render_widget_host_view.h" 19 #include "chrome/browser/renderer_host/render_widget_host_view.h"
20 #include "gfx/native_widget_types.h" 20 #include "gfx/native_widget_types.h"
21 #include "gfx/rect.h" 21 #include "gfx/rect.h"
22 #include "webkit/glue/plugins/gtk_plugin_container_manager.h"
23 #include "webkit/glue/webcursor.h" 22 #include "webkit/glue/webcursor.h"
23 #include "webkit/plugins/npapi/gtk_plugin_container_manager.h"
24 24
25 class RenderWidgetHost; 25 class RenderWidgetHost;
26 class GtkIMContextWrapper; 26 class GtkIMContextWrapper;
27 class GtkKeyBindingsHandler; 27 class GtkKeyBindingsHandler;
28 #if !defined(TOOLKIT_VIEWS) 28 #if !defined(TOOLKIT_VIEWS)
29 class MenuGtk; 29 class MenuGtk;
30 #endif 30 #endif
31 struct NativeWebKeyboardEvent; 31 struct NativeWebKeyboardEvent;
32 32
33 #if defined(OS_CHROMEOS) 33 #if defined(OS_CHROMEOS)
(...skipping 20 matching lines...) Expand all
54 // RenderWidgetHostView implementation. 54 // RenderWidgetHostView implementation.
55 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, 55 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view,
56 const gfx::Rect& pos); 56 const gfx::Rect& pos);
57 virtual void InitAsFullscreen(RenderWidgetHostView* parent_host_view); 57 virtual void InitAsFullscreen(RenderWidgetHostView* parent_host_view);
58 virtual RenderWidgetHost* GetRenderWidgetHost() const; 58 virtual RenderWidgetHost* GetRenderWidgetHost() const;
59 virtual void DidBecomeSelected(); 59 virtual void DidBecomeSelected();
60 virtual void WasHidden(); 60 virtual void WasHidden();
61 virtual void SetSize(const gfx::Size& size); 61 virtual void SetSize(const gfx::Size& size);
62 virtual gfx::NativeView GetNativeView(); 62 virtual gfx::NativeView GetNativeView();
63 virtual void MovePluginWindows( 63 virtual void MovePluginWindows(
64 const std::vector<webkit_glue::WebPluginGeometry>& moves); 64 const std::vector<webkit::npapi::WebPluginGeometry>& moves);
65 virtual void Focus(); 65 virtual void Focus();
66 virtual void Blur(); 66 virtual void Blur();
67 virtual bool HasFocus(); 67 virtual bool HasFocus();
68 virtual void Show(); 68 virtual void Show();
69 virtual void Hide(); 69 virtual void Hide();
70 virtual bool IsShowing(); 70 virtual bool IsShowing();
71 virtual gfx::Rect GetViewBounds() const; 71 virtual gfx::Rect GetViewBounds() const;
72 virtual void UpdateCursor(const WebCursor& cursor); 72 virtual void UpdateCursor(const WebCursor& cursor);
73 virtual void SetIsLoading(bool is_loading); 73 virtual void SetIsLoading(bool is_loading);
74 virtual void ImeUpdateTextInputState(WebKit::WebTextInputType type, 74 virtual void ImeUpdateTextInputState(WebKit::WebTextInputType type,
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 bool do_x_grab_; 201 bool do_x_grab_;
202 202
203 // A convenience wrapper object for GtkIMContext; 203 // A convenience wrapper object for GtkIMContext;
204 scoped_ptr<GtkIMContextWrapper> im_context_; 204 scoped_ptr<GtkIMContextWrapper> im_context_;
205 205
206 // A convenience object for handling editor key bindings defined in gtk 206 // A convenience object for handling editor key bindings defined in gtk
207 // keyboard theme. 207 // keyboard theme.
208 scoped_ptr<GtkKeyBindingsHandler> key_bindings_handler_; 208 scoped_ptr<GtkKeyBindingsHandler> key_bindings_handler_;
209 209
210 // Helper class that lets us allocate plugin containers and move them. 210 // Helper class that lets us allocate plugin containers and move them.
211 GtkPluginContainerManager plugin_container_manager_; 211 webkit::npapi::GtkPluginContainerManager plugin_container_manager_;
212 212
213 // The size that we want the renderer to be. We keep this in a separate 213 // The size that we want the renderer to be. We keep this in a separate
214 // variable because resizing in GTK+ is async. 214 // variable because resizing in GTK+ is async.
215 gfx::Size requested_size_; 215 gfx::Size requested_size_;
216 216
217 // The number of times the user has dragged against horizontal edge of the 217 // The number of times the user has dragged against horizontal edge of the
218 // monitor (if the widget is aligned with that edge). Negative values 218 // monitor (if the widget is aligned with that edge). Negative values
219 // indicate the left edge, positive the right. 219 // indicate the left edge, positive the right.
220 int dragged_at_horizontal_edge_; 220 int dragged_at_horizontal_edge_;
221 221
222 // The number of times the user has dragged against vertical edge of the 222 // The number of times the user has dragged against vertical edge of the
223 // monitor (if the widget is aligned with that edge). Negative values 223 // monitor (if the widget is aligned with that edge). Negative values
224 // indicate the top edge, positive the bottom. 224 // indicate the top edge, positive the bottom.
225 int dragged_at_vertical_edge_; 225 int dragged_at_vertical_edge_;
226 226
227 #if defined(OS_CHROMEOS) 227 #if defined(OS_CHROMEOS)
228 // Custimized tooltip window. 228 // Custimized tooltip window.
229 scoped_ptr<views::TooltipWindowGtk> tooltip_window_; 229 scoped_ptr<views::TooltipWindowGtk> tooltip_window_;
230 #endif // defined(OS_CHROMEOS) 230 #endif // defined(OS_CHROMEOS)
231 }; 231 };
232 232
233 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 233 #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