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

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

Issue 7740024: Implement touch selection menu. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 bool is_pinned_to_left, bool is_pinned_to_right) { 366 bool is_pinned_to_left, bool is_pinned_to_right) {
367 } 367 }
368 368
369 void RenderWidgetHostViewViews::SelectRect(const gfx::Point& start, 369 void RenderWidgetHostViewViews::SelectRect(const gfx::Point& start,
370 const gfx::Point& end) { 370 const gfx::Point& end) {
371 if (host_) 371 if (host_)
372 host_->Send(new ViewMsg_SelectRange(host_->routing_id(), start, end)); 372 host_->Send(new ViewMsg_SelectRange(host_->routing_id(), start, end));
373 } 373 }
374 374
375 bool RenderWidgetHostViewViews::IsCommandIdChecked(int command_id) const { 375 bool RenderWidgetHostViewViews::IsCommandIdChecked(int command_id) const {
376 // TODO(varunjain): implement this and other menu delegate methods.
377 NOTREACHED(); 376 NOTREACHED();
378 return true; 377 return true;
379 } 378 }
380 379
381 bool RenderWidgetHostViewViews::IsCommandIdEnabled(int command_id) const { 380 bool RenderWidgetHostViewViews::IsCommandIdEnabled(int command_id) const {
382 NOTREACHED(); 381 // TODO(varunjain): implement this.
382 NOTIMPLEMENTED();
383 return true; 383 return true;
384 } 384 }
385 385
386 bool RenderWidgetHostViewViews::GetAcceleratorForCommandId( 386 bool RenderWidgetHostViewViews::GetAcceleratorForCommandId(
387 int command_id, 387 int command_id,
388 ui::Accelerator* accelerator) { 388 ui::Accelerator* accelerator) {
389 NOTREACHED(); 389 NOTREACHED();
390 return true; 390 return true;
391 } 391 }
392 392
393 void RenderWidgetHostViewViews::ExecuteCommand(int command_id) { 393 void RenderWidgetHostViewViews::ExecuteCommand(int command_id) {
394 NOTREACHED(); 394 // TODO(varunjain): implement this.
395 NOTIMPLEMENTED();
395 } 396 }
396 397
397 std::string RenderWidgetHostViewViews::GetClassName() const { 398 std::string RenderWidgetHostViewViews::GetClassName() const {
398 return kViewClassName; 399 return kViewClassName;
399 } 400 }
400 401
401 gfx::NativeCursor RenderWidgetHostViewViews::GetCursor( 402 gfx::NativeCursor RenderWidgetHostViewViews::GetCursor(
402 const views::MouseEvent& event) { 403 const views::MouseEvent& event) {
403 return native_cursor_; 404 return native_cursor_;
404 } 405 }
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 793
793 void RenderWidgetHostViewViews::FinishImeCompositionSession() { 794 void RenderWidgetHostViewViews::FinishImeCompositionSession() {
794 if (!has_composition_text_) 795 if (!has_composition_text_)
795 return; 796 return;
796 if (host_) 797 if (host_)
797 host_->ImeConfirmComposition(); 798 host_->ImeConfirmComposition();
798 DCHECK(GetInputMethod()); 799 DCHECK(GetInputMethod());
799 GetInputMethod()->CancelComposition(this); 800 GetInputMethod()->CancelComposition(this);
800 has_composition_text_ = false; 801 has_composition_text_ = false;
801 } 802 }
OLDNEW
« no previous file with comments | « no previous file | views/touchui/touch_selection_controller_impl.h » ('j') | views/touchui/touch_selection_controller_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698