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_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 Loading... |
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 Loading... |
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 |
OLD | NEW |