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 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. | 774 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. |
775 std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; | 775 std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; |
776 | 776 |
777 private: | 777 private: |
778 // When emulated, this returns original device scale factor. | 778 // When emulated, this returns original device scale factor. |
779 float GetOriginalDeviceScaleFactor() const; | 779 float GetOriginalDeviceScaleFactor() const; |
780 | 780 |
781 // Indicates whether this widget has focus. | 781 // Indicates whether this widget has focus. |
782 bool has_focus_; | 782 bool has_focus_; |
783 | 783 |
| 784 // When selection exceeds the boundary, it should stay at the boundary. |
| 785 void adjustSelectionForBoundary(int& selectionStart, |
| 786 int& selectionEnd, |
| 787 const int textLength) const; |
| 788 |
784 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 789 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
785 }; | 790 }; |
786 | 791 |
787 } // namespace content | 792 } // namespace content |
788 | 793 |
789 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 794 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |