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

Side by Side Diff: content/renderer/render_widget.h

Issue 2020973002: Reland: Fix setComposingText with empty text when newCursorPosition != 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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 #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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698