| 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/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 2147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2158 } | 2158 } |
| 2159 | 2159 |
| 2160 gfx::NativeWindow RenderWidgetHostViewAura::GetAttachedWindow() const { | 2160 gfx::NativeWindow RenderWidgetHostViewAura::GetAttachedWindow() const { |
| 2161 return window_; | 2161 return window_; |
| 2162 } | 2162 } |
| 2163 | 2163 |
| 2164 ui::TextInputType RenderWidgetHostViewAura::GetTextInputType() const { | 2164 ui::TextInputType RenderWidgetHostViewAura::GetTextInputType() const { |
| 2165 return text_input_type_; | 2165 return text_input_type_; |
| 2166 } | 2166 } |
| 2167 | 2167 |
| 2168 ui::TextInputMode RenderWidgetHostViewAura::GetTextInputMode() const { |
| 2169 return ui::TEXT_INPUT_MODE_DEFAULT; |
| 2170 } |
| 2171 |
| 2168 bool RenderWidgetHostViewAura::CanComposeInline() const { | 2172 bool RenderWidgetHostViewAura::CanComposeInline() const { |
| 2169 return can_compose_inline_; | 2173 return can_compose_inline_; |
| 2170 } | 2174 } |
| 2171 | 2175 |
| 2172 gfx::Rect RenderWidgetHostViewAura::ConvertRectToScreen(const gfx::Rect& rect) { | 2176 gfx::Rect RenderWidgetHostViewAura::ConvertRectToScreen(const gfx::Rect& rect) { |
| 2173 gfx::Point origin = rect.origin(); | 2177 gfx::Point origin = rect.origin(); |
| 2174 gfx::Point end = gfx::Point(rect.right(), rect.bottom()); | 2178 gfx::Point end = gfx::Point(rect.right(), rect.bottom()); |
| 2175 | 2179 |
| 2176 aura::RootWindow* root_window = window_->GetRootWindow(); | 2180 aura::RootWindow* root_window = window_->GetRootWindow(); |
| 2177 if (root_window) { | 2181 if (root_window) { |
| (...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3237 RenderWidgetHost* widget) { | 3241 RenderWidgetHost* widget) { |
| 3238 return new RenderWidgetHostViewAura(widget); | 3242 return new RenderWidgetHostViewAura(widget); |
| 3239 } | 3243 } |
| 3240 | 3244 |
| 3241 // static | 3245 // static |
| 3242 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { | 3246 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { |
| 3243 GetScreenInfoForWindow(results, NULL); | 3247 GetScreenInfoForWindow(results, NULL); |
| 3244 } | 3248 } |
| 3245 | 3249 |
| 3246 } // namespace content | 3250 } // namespace content |
| OLD | NEW |