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

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

Issue 7824037: Get surrounding text from webkit. This CL is for sharing code only. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual void Blur() OVERRIDE; 68 virtual void Blur() OVERRIDE;
69 virtual bool HasFocus() OVERRIDE; 69 virtual bool HasFocus() OVERRIDE;
70 virtual void Show() OVERRIDE; 70 virtual void Show() OVERRIDE;
71 virtual void Hide() OVERRIDE; 71 virtual void Hide() OVERRIDE;
72 virtual bool IsShowing() OVERRIDE; 72 virtual bool IsShowing() OVERRIDE;
73 virtual gfx::Rect GetViewBounds() const OVERRIDE; 73 virtual gfx::Rect GetViewBounds() const OVERRIDE;
74 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; 74 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE;
75 virtual void SetIsLoading(bool is_loading) OVERRIDE; 75 virtual void SetIsLoading(bool is_loading) OVERRIDE;
76 virtual void ImeUpdateTextInputState(ui::TextInputType type, 76 virtual void ImeUpdateTextInputState(ui::TextInputType type,
77 bool can_compose_inline, 77 bool can_compose_inline,
78 const gfx::Rect& caret_rect) OVERRIDE; 78 const gfx::Rect& caret_rect,
79 const string16& surrounding_text,
80 size_t focus,
81 size_t anchor) OVERRIDE;
79 virtual void ImeCancelComposition() OVERRIDE; 82 virtual void ImeCancelComposition() OVERRIDE;
80 virtual void DidUpdateBackingStore( 83 virtual void DidUpdateBackingStore(
81 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, 84 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy,
82 const std::vector<gfx::Rect>& copy_rects) OVERRIDE; 85 const std::vector<gfx::Rect>& copy_rects) OVERRIDE;
83 virtual void RenderViewGone(base::TerminationStatus status, 86 virtual void RenderViewGone(base::TerminationStatus status,
84 int error_code) OVERRIDE; 87 int error_code) OVERRIDE;
85 virtual void Destroy() OVERRIDE; 88 virtual void Destroy() OVERRIDE;
86 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {} 89 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {}
87 virtual void SetTooltipText(const std::wstring& tooltip_text) OVERRIDE; 90 virtual void SetTooltipText(const std::wstring& tooltip_text) OVERRIDE;
88 virtual void SelectionChanged(const std::string& text, 91 virtual void SelectionChanged(const std::string& text,
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 // menus and drags. 270 // menus and drags.
268 GdkEventButton* last_mouse_down_; 271 GdkEventButton* last_mouse_down_;
269 272
270 #if defined(OS_CHROMEOS) 273 #if defined(OS_CHROMEOS)
271 // Custimized tooltip window. 274 // Custimized tooltip window.
272 scoped_ptr<ui::TooltipWindowGtk> tooltip_window_; 275 scoped_ptr<ui::TooltipWindowGtk> tooltip_window_;
273 #endif // defined(OS_CHROMEOS) 276 #endif // defined(OS_CHROMEOS)
274 }; 277 };
275 278
276 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 279 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view.h ('k') | content/browser/renderer_host/render_widget_host_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698