Chromium Code Reviews| 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 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1159 if (!host_) | 1159 if (!host_) |
| 1160 return false; | 1160 return false; |
| 1161 host_->UpdateTextDirection( | 1161 host_->UpdateTextDirection( |
| 1162 direction == base::i18n::RIGHT_TO_LEFT ? | 1162 direction == base::i18n::RIGHT_TO_LEFT ? |
| 1163 WebKit::WebTextDirectionRightToLeft : | 1163 WebKit::WebTextDirectionRightToLeft : |
| 1164 WebKit::WebTextDirectionLeftToRight); | 1164 WebKit::WebTextDirectionLeftToRight); |
| 1165 host_->NotifyTextDirection(); | 1165 host_->NotifyTextDirection(); |
| 1166 return true; | 1166 return true; |
| 1167 } | 1167 } |
| 1168 | 1168 |
| 1169 void RenderWidgetHostViewAura::ExtendSelectionAndDelete(int before, int after) { | |
| 1170 // TODO(horo): implement this method if it is required. | |
|
Yusuke Sato
2012/09/14 05:56:16
I think the new TextInputClient interface would be
horo
2012/09/14 06:28:02
Done.
| |
| 1171 NOTIMPLEMENTED(); | |
| 1172 } | |
| 1173 | |
| 1169 //////////////////////////////////////////////////////////////////////////////// | 1174 //////////////////////////////////////////////////////////////////////////////// |
| 1170 // RenderWidgetHostViewAura, aura::WindowDelegate implementation: | 1175 // RenderWidgetHostViewAura, aura::WindowDelegate implementation: |
| 1171 | 1176 |
| 1172 gfx::Size RenderWidgetHostViewAura::GetMinimumSize() const { | 1177 gfx::Size RenderWidgetHostViewAura::GetMinimumSize() const { |
| 1173 return gfx::Size(); | 1178 return gfx::Size(); |
| 1174 } | 1179 } |
| 1175 | 1180 |
| 1176 void RenderWidgetHostViewAura::OnBoundsChanged(const gfx::Rect& old_bounds, | 1181 void RenderWidgetHostViewAura::OnBoundsChanged(const gfx::Rect& old_bounds, |
| 1177 const gfx::Rect& new_bounds) { | 1182 const gfx::Rect& new_bounds) { |
| 1178 // We don't care about this one, we are always sized via SetSize() or | 1183 // We don't care about this one, we are always sized via SetSize() or |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1756 RenderWidgetHost* widget) { | 1761 RenderWidgetHost* widget) { |
| 1757 return new RenderWidgetHostViewAura(widget); | 1762 return new RenderWidgetHostViewAura(widget); |
| 1758 } | 1763 } |
| 1759 | 1764 |
| 1760 // static | 1765 // static |
| 1761 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { | 1766 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { |
| 1762 GetScreenInfoForWindow(results, NULL); | 1767 GetScreenInfoForWindow(results, NULL); |
| 1763 } | 1768 } |
| 1764 | 1769 |
| 1765 } // namespace content | 1770 } // namespace content |
| OLD | NEW |