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

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

Issue 145283006: Remove ui::TextInputClient::GetAttachedWindow Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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 (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_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 2348 matching lines...) Expand 10 before | Expand all | Expand 10 after
2359 // Send a blink::WebInputEvent::Char event to |host_|. 2359 // Send a blink::WebInputEvent::Char event to |host_|.
2360 NativeWebKeyboardEvent webkit_event(ui::ET_KEY_PRESSED, 2360 NativeWebKeyboardEvent webkit_event(ui::ET_KEY_PRESSED,
2361 true /* is_char */, 2361 true /* is_char */,
2362 ch, 2362 ch,
2363 flags, 2363 flags,
2364 now); 2364 now);
2365 host_->ForwardKeyboardEvent(webkit_event); 2365 host_->ForwardKeyboardEvent(webkit_event);
2366 } 2366 }
2367 } 2367 }
2368 2368
2369 gfx::NativeWindow RenderWidgetHostViewAura::GetAttachedWindow() const {
2370 return window_;
2371 }
2372
2373 ui::TextInputType RenderWidgetHostViewAura::GetTextInputType() const { 2369 ui::TextInputType RenderWidgetHostViewAura::GetTextInputType() const {
2374 return text_input_type_; 2370 return text_input_type_;
2375 } 2371 }
2376 2372
2377 ui::TextInputMode RenderWidgetHostViewAura::GetTextInputMode() const { 2373 ui::TextInputMode RenderWidgetHostViewAura::GetTextInputMode() const {
2378 return text_input_mode_; 2374 return text_input_mode_;
2379 } 2375 }
2380 2376
2381 bool RenderWidgetHostViewAura::CanComposeInline() const { 2377 bool RenderWidgetHostViewAura::CanComposeInline() const {
2382 return can_compose_inline_; 2378 return can_compose_inline_;
(...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after
3593 RenderWidgetHost* widget) { 3589 RenderWidgetHost* widget) {
3594 return new RenderWidgetHostViewAura(widget); 3590 return new RenderWidgetHostViewAura(widget);
3595 } 3591 }
3596 3592
3597 // static 3593 // static
3598 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { 3594 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) {
3599 GetScreenInfoForWindow(results, NULL); 3595 GetScreenInfoForWindow(results, NULL);
3600 } 3596 }
3601 3597
3602 } // namespace content 3598 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.h ('k') | ui/base/ime/dummy_text_input_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698