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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.h

Issue 2903833002: Reland: Update TextSelection for non-user initiated events
Patch Set: Add test for JS cursor movement Created 3 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 void DidUnregisterFromTextInputManager(TextInputManager* text_input_manager); 161 void DidUnregisterFromTextInputManager(TextInputManager* text_input_manager);
162 162
163 base::WeakPtr<RenderWidgetHostViewBase> GetWeakPtr(); 163 base::WeakPtr<RenderWidgetHostViewBase> GetWeakPtr();
164 164
165 //---------------------------------------------------------------------------- 165 //----------------------------------------------------------------------------
166 // The following methods can be overridden by derived classes. 166 // The following methods can be overridden by derived classes.
167 167
168 // Notifies the View that the renderer text selection has changed. 168 // Notifies the View that the renderer text selection has changed.
169 virtual void SelectionChanged(const base::string16& text, 169 virtual void SelectionChanged(const base::string16& text,
170 size_t offset, 170 size_t offset,
171 const gfx::Range& range); 171 const gfx::Range& range,
172 bool user_initiated);
172 173
173 // The requested size of the renderer. May differ from GetViewBounds().size() 174 // The requested size of the renderer. May differ from GetViewBounds().size()
174 // when the view requires additional throttling. 175 // when the view requires additional throttling.
175 virtual gfx::Size GetRequestedRendererSize() const; 176 virtual gfx::Size GetRequestedRendererSize() const;
176 177
177 // The size of the view's backing surface in non-DPI-adjusted pixels. 178 // The size of the view's backing surface in non-DPI-adjusted pixels.
178 virtual gfx::Size GetPhysicalBackingSize() const; 179 virtual gfx::Size GetPhysicalBackingSize() const;
179 180
180 // Whether or not Blink's viewport size should be shrunk by the height of the 181 // Whether or not Blink's viewport size should be shrunk by the height of the
181 // URL-bar. 182 // URL-bar.
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 501 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
501 502
502 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 503 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
503 504
504 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 505 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
505 }; 506 };
506 507
507 } // namespace content 508 } // namespace content
508 509
509 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 510 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698