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

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

Issue 8294026: Support IMM32 reconversion on Windows (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebase Created 9 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) 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_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(OS_MACOSX) 9 #if defined(OS_MACOSX)
10 #include <OpenGL/OpenGL.h> 10 #include <OpenGL/OpenGL.h>
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // Tells the View to destroy itself. 167 // Tells the View to destroy itself.
168 virtual void Destroy() = 0; 168 virtual void Destroy() = 0;
169 169
170 // Tells the View that the tooltip text for the current mouse position over 170 // Tells the View that the tooltip text for the current mouse position over
171 // the page has changed. 171 // the page has changed.
172 virtual void SetTooltipText(const string16& tooltip_text) = 0; 172 virtual void SetTooltipText(const string16& tooltip_text) = 0;
173 173
174 // Notifies the View that the renderer text selection has changed. 174 // Notifies the View that the renderer text selection has changed.
175 virtual void SelectionChanged(const string16& text, 175 virtual void SelectionChanged(const string16& text,
176 size_t offset, 176 size_t offset,
177 const ui::Range& range) {} 177 const ui::Range& range);
178 178
179 // Notifies the View that the renderer selection bounds has changed. 179 // Notifies the View that the renderer selection bounds has changed.
180 // |start_rect| and |end_rect| are the bounds end of the selection in the 180 // |start_rect| and |end_rect| are the bounds end of the selection in the
181 // coordinate system of the render view. 181 // coordinate system of the render view.
182 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, 182 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect,
183 const gfx::Rect& end_rect) {} 183 const gfx::Rect& end_rect) {}
184 184
185 // Tells the View whether the context menu is showing. This is used on Linux 185 // Tells the View whether the context menu is showing. This is used on Linux
186 // to suppress updates to webkit focus for the duration of the show. 186 // to suppress updates to webkit focus for the duration of the show.
187 virtual void ShowingContextMenu(bool showing) {} 187 virtual void ShowingContextMenu(bool showing) {}
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 // rendered to draw the resize corner, sidebar mini tabs etc. 347 // rendered to draw the resize corner, sidebar mini tabs etc.
348 gfx::Rect reserved_rect_; 348 gfx::Rect reserved_rect_;
349 349
350 // While the mouse is locked, the cursor is hidden from the user. Mouse events 350 // While the mouse is locked, the cursor is hidden from the user. Mouse events
351 // are still generated. However, the position they report is the last known 351 // are still generated. However, the position they report is the last known
352 // mouse position just as mouse lock was entered; the movement they report 352 // mouse position just as mouse lock was entered; the movement they report
353 // indicates what the change in position of the mouse would be had it not been 353 // indicates what the change in position of the mouse would be had it not been
354 // locked. 354 // locked.
355 bool mouse_locked_; 355 bool mouse_locked_;
356 356
357 // A buffer containing the text inside and around the current selection range.
358 string16 selection_text_;
359
360 // The offset of the text stored in |selection_text_| relative to the start of
361 // the web page.
362 size_t selection_text_offset_;
363
364 // The current selection range relative to the start of the web page.
365 ui::Range selection_range_;
366
357 private: 367 private:
358 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); 368 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView);
359 }; 369 };
360 370
361 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 371 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698