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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 2255363002: TextInputManager::GetTextSelection() should be called on focused widget. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/frame_host/render_widget_host_view_child_frame.h" 5 #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 frame_connector_(nullptr), 49 frame_connector_(nullptr),
50 begin_frame_source_(nullptr), 50 begin_frame_source_(nullptr),
51 observing_begin_frame_source_(false), 51 observing_begin_frame_source_(false),
52 parent_surface_client_id_(0), 52 parent_surface_client_id_(0),
53 weak_factory_(this) { 53 weak_factory_(this) {
54 id_allocator_.reset(new cc::SurfaceIdAllocator(AllocateSurfaceClientId())); 54 id_allocator_.reset(new cc::SurfaceIdAllocator(AllocateSurfaceClientId()));
55 GetSurfaceManager()->RegisterSurfaceClientId(id_allocator_->client_id()); 55 GetSurfaceManager()->RegisterSurfaceClientId(id_allocator_->client_id());
56 RegisterSurfaceNamespaceId(); 56 RegisterSurfaceNamespaceId();
57 57
58 host_->SetView(this); 58 host_->SetView(this);
59 GetTextInputManager();
EhsanK 2016/08/20 02:41:30 This initialization is necessary because InputMeth
59 } 60 }
60 61
61 RenderWidgetHostViewChildFrame::~RenderWidgetHostViewChildFrame() { 62 RenderWidgetHostViewChildFrame::~RenderWidgetHostViewChildFrame() {
62 if (!surface_id_.is_null()) 63 if (!surface_id_.is_null())
63 surface_factory_->Destroy(surface_id_); 64 surface_factory_->Destroy(surface_id_);
64 65
65 if (GetSurfaceManager()) 66 if (GetSurfaceManager())
66 GetSurfaceManager()->InvalidateSurfaceClientId(id_allocator_->client_id()); 67 GetSurfaceManager()->InvalidateSurfaceClientId(id_allocator_->client_id());
67 } 68 }
68 69
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 722
722 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { 723 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const {
723 return true; 724 return true;
724 } 725 }
725 726
726 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { 727 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const {
727 return surface_id_; 728 return surface_id_;
728 }; 729 };
729 730
730 } // namespace content 731 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698