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

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

Issue 9420007: Move RenderWidgetHostView into content namespace. Fix include paths. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux_chromeos_gtk build issue not caught by trybots. Created 8 years, 10 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_GTK_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 6 #define CONTENT_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 <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "content/browser/renderer_host/render_widget_host_view.h" 16 #include "content/browser/renderer_host/render_widget_host_view_base.h"
17 #include "content/common/content_export.h" 17 #include "content/common/content_export.h"
18 #include "ui/base/animation/animation_delegate.h" 18 #include "ui/base/animation/animation_delegate.h"
19 #include "ui/base/animation/slide_animation.h" 19 #include "ui/base/animation/slide_animation.h"
20 #include "ui/base/gtk/gtk_signal.h" 20 #include "ui/base/gtk/gtk_signal.h"
21 #include "ui/base/gtk/gtk_signal_registrar.h" 21 #include "ui/base/gtk/gtk_signal_registrar.h"
22 #include "ui/base/gtk/owned_widget_gtk.h" 22 #include "ui/base/gtk/owned_widget_gtk.h"
23 #include "ui/gfx/native_widget_types.h" 23 #include "ui/gfx/native_widget_types.h"
24 #include "ui/gfx/point.h" 24 #include "ui/gfx/point.h"
25 #include "ui/gfx/rect.h" 25 #include "ui/gfx/rect.h"
26 #include "webkit/glue/webcursor.h" 26 #include "webkit/glue/webcursor.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 virtual gfx::Rect GetViewBounds() const OVERRIDE; 63 virtual gfx::Rect GetViewBounds() const OVERRIDE;
64 virtual GdkEventButton* GetLastMouseDown() OVERRIDE; 64 virtual GdkEventButton* GetLastMouseDown() OVERRIDE;
65 #if !defined(TOOLKIT_VIEWS) 65 #if !defined(TOOLKIT_VIEWS)
66 virtual gfx::NativeView BuildInputMethodsGtkMenu() OVERRIDE; 66 virtual gfx::NativeView BuildInputMethodsGtkMenu() OVERRIDE;
67 #endif // !defined(TOOLKIT_VIEWS) 67 #endif // !defined(TOOLKIT_VIEWS)
68 virtual void UnhandledWheelEvent( 68 virtual void UnhandledWheelEvent(
69 const WebKit::WebMouseWheelEvent& event) OVERRIDE; 69 const WebKit::WebMouseWheelEvent& event) OVERRIDE;
70 virtual void SetBackground(const SkBitmap& background) OVERRIDE; 70 virtual void SetBackground(const SkBitmap& background) OVERRIDE;
71 71
72 // RenderWidgetHostViewPort implementation. 72 // RenderWidgetHostViewPort implementation.
73 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, 73 virtual void InitAsPopup(content::RenderWidgetHostView* parent_host_view,
74 const gfx::Rect& pos) OVERRIDE; 74 const gfx::Rect& pos) OVERRIDE;
75 virtual void InitAsFullscreen( 75 virtual void InitAsFullscreen(
76 RenderWidgetHostView* reference_host_view) OVERRIDE; 76 content::RenderWidgetHostView* reference_host_view) OVERRIDE;
77 virtual void DidBecomeSelected() OVERRIDE; 77 virtual void DidBecomeSelected() OVERRIDE;
78 virtual void WasHidden() OVERRIDE; 78 virtual void WasHidden() OVERRIDE;
79 virtual void MovePluginWindows( 79 virtual void MovePluginWindows(
80 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE; 80 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE;
81 virtual void Focus() OVERRIDE; 81 virtual void Focus() OVERRIDE;
82 virtual void Blur() OVERRIDE; 82 virtual void Blur() OVERRIDE;
83 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; 83 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE;
84 virtual void SetIsLoading(bool is_loading) OVERRIDE; 84 virtual void SetIsLoading(bool is_loading) OVERRIDE;
85 virtual void TextInputStateChanged(ui::TextInputType type, 85 virtual void TextInputStateChanged(ui::TextInputType type,
86 bool can_compose_inline) OVERRIDE; 86 bool can_compose_inline) OVERRIDE;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // On Linux (not ChromeOS): 137 // On Linux (not ChromeOS):
138 // Before calling RenderWidgetHost::ForwardKeyboardEvent(), this method 138 // Before calling RenderWidgetHost::ForwardKeyboardEvent(), this method
139 // calls GtkKeyBindingsHandler::Match() against the event and send matched 139 // calls GtkKeyBindingsHandler::Match() against the event and send matched
140 // edit commands to renderer by calling 140 // edit commands to renderer by calling
141 // RenderWidgetHost::ForwardEditCommandsForNextKeyEvent(). 141 // RenderWidgetHost::ForwardEditCommandsForNextKeyEvent().
142 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event); 142 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event);
143 143
144 bool RetrieveSurrounding(std::string* text, size_t* cursor_index); 144 bool RetrieveSurrounding(std::string* text, size_t* cursor_index);
145 145
146 protected: 146 protected:
147 friend class RenderWidgetHostView; 147 friend class content::RenderWidgetHostView;
148 148
149 // Should construct only via RenderWidgetHostView::CreateViewForWidget. 149 // Should construct only via RenderWidgetHostView::CreateViewForWidget.
150 explicit RenderWidgetHostViewGtk(RenderWidgetHost* widget); 150 explicit RenderWidgetHostViewGtk(RenderWidgetHost* widget);
151 151
152 private: 152 private:
153 friend class RenderWidgetHostViewGtkWidget; 153 friend class RenderWidgetHostViewGtkWidget;
154 154
155 CHROMEGTK_CALLBACK_1(RenderWidgetHostViewGtk, 155 CHROMEGTK_CALLBACK_1(RenderWidgetHostViewGtk,
156 gboolean, 156 gboolean,
157 OnWindowStateEvent, 157 OnWindowStateEvent,
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 288
289 #if defined(OS_CHROMEOS) 289 #if defined(OS_CHROMEOS)
290 // Custimized tooltip window. 290 // Custimized tooltip window.
291 scoped_ptr<ui::TooltipWindowGtk> tooltip_window_; 291 scoped_ptr<ui::TooltipWindowGtk> tooltip_window_;
292 #endif // defined(OS_CHROMEOS) 292 #endif // defined(OS_CHROMEOS)
293 293
294 ui::GtkSignalRegistrar signals_; 294 ui::GtkSignalRegistrar signals_;
295 }; 295 };
296 296
297 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 297 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698