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

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: Fix Clang Created 9 years, 7 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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
949 } 950 }
950 951
951 // static 952 // static
952 RenderWidgetHostView* 953 RenderWidgetHostView*
953 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( 954 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView(
954 gfx::NativeView widget) { 955 gfx::NativeView widget) {
955 gpointer user_data = g_object_get_data(G_OBJECT(widget), 956 gpointer user_data = g_object_get_data(G_OBJECT(widget),
956 kRenderWidgetHostViewKey); 957 kRenderWidgetHostViewKey);
957 return reinterpret_cast<RenderWidgetHostView*>(user_data); 958 return reinterpret_cast<RenderWidgetHostView*>(user_data);
958 } 959 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_views.h ('k') | chrome/browser/renderer_host/text_input_client_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698