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 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. | 765 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. |
766 std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; | 766 std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; |
767 | 767 |
768 private: | 768 private: |
769 // When emulated, this returns original device scale factor. | 769 // When emulated, this returns original device scale factor. |
770 float GetOriginalDeviceScaleFactor() const; | 770 float GetOriginalDeviceScaleFactor() const; |
771 | 771 |
772 // Indicates whether this widget has focus. | 772 // Indicates whether this widget has focus. |
773 bool has_focus_; | 773 bool has_focus_; |
774 | 774 |
| 775 // When selection exceeds the boundary, it should stay at the boundary. |
| 776 std::pair<int, int> adjustSelectionForBoundary(int selectionStart, |
| 777 int selectionEnd, |
| 778 const int textLength) const; |
| 779 |
775 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 780 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
776 }; | 781 }; |
777 | 782 |
778 } // namespace content | 783 } // namespace content |
779 | 784 |
780 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 785 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |