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

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

Issue 10928199: Add ExtendSelectionAndDelete() method to ui::TextInputClient. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: change int to size_t Created 8 years, 3 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/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
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(
1170 size_t before, size_t after) {
1171 // TODO(horo): implement this method if it is required.
1172 // http://crbug.com/149155
1173 NOTIMPLEMENTED();
1174 }
1175
1169 //////////////////////////////////////////////////////////////////////////////// 1176 ////////////////////////////////////////////////////////////////////////////////
1170 // RenderWidgetHostViewAura, aura::WindowDelegate implementation: 1177 // RenderWidgetHostViewAura, aura::WindowDelegate implementation:
1171 1178
1172 gfx::Size RenderWidgetHostViewAura::GetMinimumSize() const { 1179 gfx::Size RenderWidgetHostViewAura::GetMinimumSize() const {
1173 return gfx::Size(); 1180 return gfx::Size();
1174 } 1181 }
1175 1182
1176 void RenderWidgetHostViewAura::OnBoundsChanged(const gfx::Rect& old_bounds, 1183 void RenderWidgetHostViewAura::OnBoundsChanged(const gfx::Rect& old_bounds,
1177 const gfx::Rect& new_bounds) { 1184 const gfx::Rect& new_bounds) {
1178 // We don't care about this one, we are always sized via SetSize() or 1185 // 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
1756 RenderWidgetHost* widget) { 1763 RenderWidgetHost* widget) {
1757 return new RenderWidgetHostViewAura(widget); 1764 return new RenderWidgetHostViewAura(widget);
1758 } 1765 }
1759 1766
1760 // static 1767 // static
1761 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { 1768 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) {
1762 GetScreenInfoForWindow(results, NULL); 1769 GetScreenInfoForWindow(results, NULL);
1763 } 1770 }
1764 1771
1765 } // namespace content 1772 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698