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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.cc

Issue 173803002: Redesigns the text input focus handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added an unittest and thread checker. Created 6 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) 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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 425
426 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text, 426 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text,
427 size_t offset, 427 size_t offset,
428 const gfx::Range& range) { 428 const gfx::Range& range) {
429 selection_text_ = text; 429 selection_text_ = text;
430 selection_text_offset_ = offset; 430 selection_text_offset_ = offset;
431 selection_range_.set_start(range.start()); 431 selection_range_.set_start(range.start());
432 selection_range_.set_end(range.end()); 432 selection_range_.set_end(range.end());
433 } 433 }
434 434
435 ui::TextInputClient* RenderWidgetHostViewBase::GetTextInputClient() {
436 NOTREACHED();
437 return NULL;
438 }
439
435 bool RenderWidgetHostViewBase::IsShowingContextMenu() const { 440 bool RenderWidgetHostViewBase::IsShowingContextMenu() const {
436 return showing_context_menu_; 441 return showing_context_menu_;
437 } 442 }
438 443
439 void RenderWidgetHostViewBase::SetShowingContextMenu(bool showing) { 444 void RenderWidgetHostViewBase::SetShowingContextMenu(bool showing) {
440 DCHECK_NE(showing_context_menu_, showing); 445 DCHECK_NE(showing_context_menu_, showing);
441 showing_context_menu_ = showing; 446 showing_context_menu_ = showing;
442 } 447 }
443 448
444 base::string16 RenderWidgetHostViewBase::GetSelectedText() const { 449 base::string16 RenderWidgetHostViewBase::GetSelectedText() const {
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 if (!impl) 613 if (!impl)
609 return; 614 return;
610 impl->FlushInput(); 615 impl->FlushInput();
611 } 616 }
612 617
613 SkBitmap::Config RenderWidgetHostViewBase::PreferredReadbackFormat() { 618 SkBitmap::Config RenderWidgetHostViewBase::PreferredReadbackFormat() {
614 return SkBitmap::kARGB_8888_Config; 619 return SkBitmap::kARGB_8888_Config;
615 } 620 }
616 621
617 } // namespace content 622 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698