| 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. |
| 1171 // http://crbug.com/149155 |
| 1172 NOTIMPLEMENTED(); |
| 1173 } |
| 1174 |
| 1169 //////////////////////////////////////////////////////////////////////////////// | 1175 //////////////////////////////////////////////////////////////////////////////// |
| 1170 // RenderWidgetHostViewAura, aura::WindowDelegate implementation: | 1176 // RenderWidgetHostViewAura, aura::WindowDelegate implementation: |
| 1171 | 1177 |
| 1172 gfx::Size RenderWidgetHostViewAura::GetMinimumSize() const { | 1178 gfx::Size RenderWidgetHostViewAura::GetMinimumSize() const { |
| 1173 return gfx::Size(); | 1179 return gfx::Size(); |
| 1174 } | 1180 } |
| 1175 | 1181 |
| 1176 void RenderWidgetHostViewAura::OnBoundsChanged(const gfx::Rect& old_bounds, | 1182 void RenderWidgetHostViewAura::OnBoundsChanged(const gfx::Rect& old_bounds, |
| 1177 const gfx::Rect& new_bounds) { | 1183 const gfx::Rect& new_bounds) { |
| 1178 // We don't care about this one, we are always sized via SetSize() or | 1184 // 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) { | 1762 RenderWidgetHost* widget) { |
| 1757 return new RenderWidgetHostViewAura(widget); | 1763 return new RenderWidgetHostViewAura(widget); |
| 1758 } | 1764 } |
| 1759 | 1765 |
| 1760 // static | 1766 // static |
| 1761 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { | 1767 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { |
| 1762 GetScreenInfoForWindow(results, NULL); | 1768 GetScreenInfoForWindow(results, NULL); |
| 1763 } | 1769 } |
| 1764 | 1770 |
| 1765 } // namespace content | 1771 } // namespace content |
| OLD | NEW |