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

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: For multi-code text Created 4 years, 6 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 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 std::pair<int, int> 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698