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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_views.cc

Issue 6289009: [Mac] Implement the system dictionary popup by implementing NSTextInput methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Create AttributedStringCoder Created 9 years, 8 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 #include "chrome/browser/renderer_host/render_widget_host_view_views.h" 5 #include "chrome/browser/renderer_host/render_widget_host_view_views.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 parent()->RemoveChildView(this); 348 parent()->RemoveChildView(this);
349 MessageLoop::current()->DeleteSoon(FROM_HERE, this); 349 MessageLoop::current()->DeleteSoon(FROM_HERE, this);
350 } 350 }
351 351
352 void RenderWidgetHostViewViews::SetTooltipText(const std::wstring& tip) { 352 void RenderWidgetHostViewViews::SetTooltipText(const std::wstring& tip) {
353 // TODO(anicolao): decide if we want tooltips for touch (none specified 353 // TODO(anicolao): decide if we want tooltips for touch (none specified
354 // right now/might want a press-and-hold display) 354 // right now/might want a press-and-hold display)
355 // NOTIMPLEMENTED(); ... too annoying, it triggers for every mousemove 355 // NOTIMPLEMENTED(); ... too annoying, it triggers for every mousemove
356 } 356 }
357 357
358 void RenderWidgetHostViewViews::SelectionChanged(const std::string& text) { 358 void RenderWidgetHostViewViews::SelectionChanged(const std::string& text,
359 const ui::Range& range) {
359 // TODO(anicolao): deal with the clipboard without GTK 360 // TODO(anicolao): deal with the clipboard without GTK
360 NOTIMPLEMENTED(); 361 NOTIMPLEMENTED();
361 } 362 }
362 363
363 void RenderWidgetHostViewViews::ShowingContextMenu(bool showing) { 364 void RenderWidgetHostViewViews::ShowingContextMenu(bool showing) {
364 is_showing_context_menu_ = showing; 365 is_showing_context_menu_ = showing;
365 } 366 }
366 367
367 BackingStore* RenderWidgetHostViewViews::AllocBackingStore( 368 BackingStore* RenderWidgetHostViewViews::AllocBackingStore(
368 const gfx::Size& size) { 369 const gfx::Size& size) {
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 } 954 }
954 955
955 // static 956 // static
956 RenderWidgetHostView* 957 RenderWidgetHostView*
957 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( 958 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView(
958 gfx::NativeView widget) { 959 gfx::NativeView widget) {
959 gpointer user_data = g_object_get_data(G_OBJECT(widget), 960 gpointer user_data = g_object_get_data(G_OBJECT(widget),
960 kRenderWidgetHostViewKey); 961 kRenderWidgetHostViewKey);
961 return reinterpret_cast<RenderWidgetHostView*>(user_data); 962 return reinterpret_cast<RenderWidgetHostView*>(user_data);
962 } 963 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698