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

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

Issue 8294026: Support IMM32 reconversion on Windows (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix return values 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 #include "content/browser/renderer_host/render_widget_host_view.h" 5 #include "content/browser/renderer_host/render_widget_host_view.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h"
9 9
10 #if defined(OS_MACOSX) 10 #if defined(OS_MACOSX)
(...skipping 27 matching lines...) Expand all
38 // static 38 // static
39 void RenderWidgetHostView::GetDefaultScreenInfo( 39 void RenderWidgetHostView::GetDefaultScreenInfo(
40 WebKit::WebScreenInfo* results) { 40 WebKit::WebScreenInfo* results) {
41 GdkWindow* gdk_window = 41 GdkWindow* gdk_window =
42 gdk_display_get_default_group(gdk_display_get_default()); 42 gdk_display_get_default_group(gdk_display_get_default());
43 content::GetScreenInfoFromNativeWindow(gdk_window, results); 43 content::GetScreenInfoFromNativeWindow(gdk_window, results);
44 } 44 }
45 #endif 45 #endif
46 46
47 RenderWidgetHostView::RenderWidgetHostView() 47 RenderWidgetHostView::RenderWidgetHostView()
48 : popup_type_(WebKit::WebPopupTypeNone), mouse_locked_(false) { 48 : popup_type_(WebKit::WebPopupTypeNone),
49 mouse_locked_(false),
50 selection_text_offset_(0),
51 selection_range_(ui::Range::InvalidRange()) {
49 } 52 }
50 53
51 RenderWidgetHostView::~RenderWidgetHostView() { 54 RenderWidgetHostView::~RenderWidgetHostView() {
52 DCHECK(!mouse_locked_); 55 DCHECK(!mouse_locked_);
53 } 56 }
54 57
55 void RenderWidgetHostView::SetBackground(const SkBitmap& background) { 58 void RenderWidgetHostView::SetBackground(const SkBitmap& background) {
56 background_ = background; 59 background_ = background;
57 } 60 }
61
62
63 void RenderWidgetHostView::SelectionChanged(const string16& text,
64 size_t offset,
65 const ui::Range& range) {
66 selection_text_ = text;
67 selection_text_offset_ = offset;
68 selection_range_ = range;
Hironori Bono 2011/10/27 06:17:47 nit: if ui::Range explicitly allows using copy con
Peng 2011/10/27 16:12:24 Done.
69 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698