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 <set> | 7 #include <set> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 1687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1698 range->set_end(selection_range_.end()); | 1698 range->set_end(selection_range_.end()); |
1699 return true; | 1699 return true; |
1700 } | 1700 } |
1701 | 1701 |
1702 bool RenderWidgetHostViewAura::SetSelectionRange(const gfx::Range& range) { | 1702 bool RenderWidgetHostViewAura::SetSelectionRange(const gfx::Range& range) { |
1703 // TODO(suzhe): implement this method when fixing http://crbug.com/55130. | 1703 // TODO(suzhe): implement this method when fixing http://crbug.com/55130. |
1704 NOTIMPLEMENTED(); | 1704 NOTIMPLEMENTED(); |
1705 return false; | 1705 return false; |
1706 } | 1706 } |
1707 | 1707 |
| 1708 uint32 RenderWidgetHostViewAura::GetSelectionOffset() const { |
| 1709 return selection_text_offset_; |
| 1710 } |
| 1711 |
1708 bool RenderWidgetHostViewAura::DeleteRange(const gfx::Range& range) { | 1712 bool RenderWidgetHostViewAura::DeleteRange(const gfx::Range& range) { |
1709 // TODO(suzhe): implement this method when fixing http://crbug.com/55130. | 1713 // TODO(suzhe): implement this method when fixing http://crbug.com/55130. |
1710 NOTIMPLEMENTED(); | 1714 NOTIMPLEMENTED(); |
1711 return false; | 1715 return false; |
1712 } | 1716 } |
1713 | 1717 |
1714 bool RenderWidgetHostViewAura::GetTextFromRange( | 1718 bool RenderWidgetHostViewAura::GetTextFromRange( |
1715 const gfx::Range& range, | 1719 const gfx::Range& range, |
1716 base::string16* text) const { | 1720 base::string16* text) const { |
1717 gfx::Range selection_text_range(selection_text_offset_, | 1721 gfx::Range selection_text_range(selection_text_offset_, |
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2771 | 2775 |
2772 //////////////////////////////////////////////////////////////////////////////// | 2776 //////////////////////////////////////////////////////////////////////////////// |
2773 // RenderWidgetHostViewBase, public: | 2777 // RenderWidgetHostViewBase, public: |
2774 | 2778 |
2775 // static | 2779 // static |
2776 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { | 2780 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { |
2777 GetScreenInfoForWindow(results, NULL); | 2781 GetScreenInfoForWindow(results, NULL); |
2778 } | 2782 } |
2779 | 2783 |
2780 } // namespace content | 2784 } // namespace content |
OLD | NEW |