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

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: Synced. Created 6 years, 9 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 void RenderWidgetHostViewBase::FlushInput() { 601 void RenderWidgetHostViewBase::FlushInput() {
597 RenderWidgetHostImpl* impl = NULL; 602 RenderWidgetHostImpl* impl = NULL;
598 if (GetRenderWidgetHost()) 603 if (GetRenderWidgetHost())
599 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); 604 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost());
600 if (!impl) 605 if (!impl)
601 return; 606 return;
602 impl->FlushInput(); 607 impl->FlushInput();
603 } 608 }
604 609
605 } // namespace content 610 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698