| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_base.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "content/browser/accessibility/browser_accessibility_manager.h" | 8 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 9 #include "content/browser/gpu/gpu_data_manager_impl.h" | 9 #include "content/browser/gpu/gpu_data_manager_impl.h" |
| 10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" | 10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 | 418 |
| 419 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text, | 419 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text, |
| 420 size_t offset, | 420 size_t offset, |
| 421 const gfx::Range& range) { | 421 const gfx::Range& range) { |
| 422 selection_text_ = text; | 422 selection_text_ = text; |
| 423 selection_text_offset_ = offset; | 423 selection_text_offset_ = offset; |
| 424 selection_range_.set_start(range.start()); | 424 selection_range_.set_start(range.start()); |
| 425 selection_range_.set_end(range.end()); | 425 selection_range_.set_end(range.end()); |
| 426 } | 426 } |
| 427 | 427 |
| 428 ui::TextInputClient* RenderWidgetHostViewBase::GetTextInputClient() { |
| 429 NOTREACHED(); |
| 430 return NULL; |
| 431 } |
| 432 |
| 428 bool RenderWidgetHostViewBase::IsShowingContextMenu() const { | 433 bool RenderWidgetHostViewBase::IsShowingContextMenu() const { |
| 429 return showing_context_menu_; | 434 return showing_context_menu_; |
| 430 } | 435 } |
| 431 | 436 |
| 432 void RenderWidgetHostViewBase::SetShowingContextMenu(bool showing) { | 437 void RenderWidgetHostViewBase::SetShowingContextMenu(bool showing) { |
| 433 DCHECK_NE(showing_context_menu_, showing); | 438 DCHECK_NE(showing_context_menu_, showing); |
| 434 showing_context_menu_ = showing; | 439 showing_context_menu_ = showing; |
| 435 } | 440 } |
| 436 | 441 |
| 437 base::string16 RenderWidgetHostViewBase::GetSelectedText() const { | 442 base::string16 RenderWidgetHostViewBase::GetSelectedText() const { |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 if (!impl) | 606 if (!impl) |
| 602 return; | 607 return; |
| 603 impl->FlushInput(); | 608 impl->FlushInput(); |
| 604 } | 609 } |
| 605 | 610 |
| 606 SkBitmap::Config RenderWidgetHostViewBase::PreferredReadbackFormat() { | 611 SkBitmap::Config RenderWidgetHostViewBase::PreferredReadbackFormat() { |
| 607 return SkBitmap::kARGB_8888_Config; | 612 return SkBitmap::kARGB_8888_Config; |
| 608 } | 613 } |
| 609 | 614 |
| 610 } // namespace content | 615 } // namespace content |
| OLD | NEW |