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

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

Issue 2856093003: Update TextSelection for non-user initiated events (Closed)
Patch Set: Update TextSelection for non-user initiated events Created 3 years, 7 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 void DidUnregisterFromTextInputManager(TextInputManager* text_input_manager); 155 void DidUnregisterFromTextInputManager(TextInputManager* text_input_manager);
156 156
157 base::WeakPtr<RenderWidgetHostViewBase> GetWeakPtr(); 157 base::WeakPtr<RenderWidgetHostViewBase> GetWeakPtr();
158 158
159 //---------------------------------------------------------------------------- 159 //----------------------------------------------------------------------------
160 // The following methods can be overridden by derived classes. 160 // The following methods can be overridden by derived classes.
161 161
162 // Notifies the View that the renderer text selection has changed. 162 // Notifies the View that the renderer text selection has changed.
163 virtual void SelectionChanged(const base::string16& text, 163 virtual void SelectionChanged(const base::string16& text,
164 size_t offset, 164 size_t offset,
165 const gfx::Range& range); 165 const gfx::Range& range,
166 bool user_initiated);
166 167
167 // The requested size of the renderer. May differ from GetViewBounds().size() 168 // The requested size of the renderer. May differ from GetViewBounds().size()
168 // when the view requires additional throttling. 169 // when the view requires additional throttling.
169 virtual gfx::Size GetRequestedRendererSize() const; 170 virtual gfx::Size GetRequestedRendererSize() const;
170 171
171 // The size of the view's backing surface in non-DPI-adjusted pixels. 172 // The size of the view's backing surface in non-DPI-adjusted pixels.
172 virtual gfx::Size GetPhysicalBackingSize() const; 173 virtual gfx::Size GetPhysicalBackingSize() const;
173 174
174 // Whether or not Blink's viewport size should be shrunk by the height of the 175 // Whether or not Blink's viewport size should be shrunk by the height of the
175 // URL-bar. 176 // URL-bar.
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 469 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
469 470
470 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 471 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
471 472
472 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 473 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
473 }; 474 };
474 475
475 } // namespace content 476 } // namespace content
476 477
477 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 478 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698