OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |