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

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

Issue 2149493004: [refactor] Removing the dead method RenderWidgetHostView::GetSelectedText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made const 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_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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 // RenderWidgetHostView implementation. 86 // RenderWidgetHostView implementation.
87 void SetBackgroundColor(SkColor color) override; 87 void SetBackgroundColor(SkColor color) override;
88 void SetBackgroundColorToDefault() final; 88 void SetBackgroundColorToDefault() final;
89 bool GetBackgroundOpaque() override; 89 bool GetBackgroundOpaque() override;
90 ui::TextInputClient* GetTextInputClient() override; 90 ui::TextInputClient* GetTextInputClient() override;
91 void WasUnOccluded() override {} 91 void WasUnOccluded() override {}
92 void WasOccluded() override {} 92 void WasOccluded() override {}
93 bool IsShowingContextMenu() const override; 93 bool IsShowingContextMenu() const override;
94 void SetShowingContextMenu(bool showing_menu) override; 94 void SetShowingContextMenu(bool showing_menu) override;
95 base::string16 GetSelectedText() const override;
96 bool IsMouseLocked() override; 95 bool IsMouseLocked() override;
97 gfx::Size GetVisibleViewportSize() const override; 96 gfx::Size GetVisibleViewportSize() const override;
98 void SetInsets(const gfx::Insets& insets) override; 97 void SetInsets(const gfx::Insets& insets) override;
99 void BeginFrameSubscription( 98 void BeginFrameSubscription(
100 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; 99 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override;
101 void EndFrameSubscription() override; 100 void EndFrameSubscription() override;
102 void FocusedNodeTouched(const gfx::Point& location_dips_screen, 101 void FocusedNodeTouched(const gfx::Point& location_dips_screen,
103 bool editable) override; 102 bool editable) override;
104 103
105 // This only needs to be overridden by RenderWidgetHostViewBase subclasses 104 // This only needs to be overridden by RenderWidgetHostViewBase subclasses
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 // Add and remove observers for lifetime event notifications. The order in 388 // Add and remove observers for lifetime event notifications. The order in
390 // which notifications are sent to observers is undefined. Clients must be 389 // which notifications are sent to observers is undefined. Clients must be
391 // sure to remove the observer before they go away. 390 // sure to remove the observer before they go away.
392 void AddObserver(RenderWidgetHostViewBaseObserver* observer); 391 void AddObserver(RenderWidgetHostViewBaseObserver* observer);
393 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer); 392 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer);
394 393
395 // Exposed for testing. 394 // Exposed for testing.
396 virtual bool IsChildFrameForTesting() const; 395 virtual bool IsChildFrameForTesting() const;
397 virtual cc::SurfaceId SurfaceIdForTesting() const; 396 virtual cc::SurfaceId SurfaceIdForTesting() const;
398 397
398 base::string16 GetSelectedTextForTesting() const;
Charlie Reis 2016/07/14 18:28:39 Won't this have the same problem when we get to ht
EhsanK 2016/07/14 19:09:17 Removed const. We will hopefully remove this metho
399
399 protected: 400 protected:
400 // Interface class only, do not construct. 401 // Interface class only, do not construct.
401 RenderWidgetHostViewBase(); 402 RenderWidgetHostViewBase();
402 403
403 void NotifyObserversAboutShutdown(); 404 void NotifyObserversAboutShutdown();
404 405
405 // Returns a reference to the current instance of TextInputManager. The 406 // Returns a reference to the current instance of TextInputManager. The
406 // reference is obtained from RenderWidgetHostDelegate. The first time a non- 407 // reference is obtained from RenderWidgetHostDelegate. The first time a non-
407 // null reference is obtained, its value is cached in |text_input_manager_| 408 // null reference is obtained, its value is cached in |text_input_manager_|
408 // and this view is registered with it. The RWHV will unregister from the 409 // and this view is registered with it. The RWHV will unregister from the
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 470 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
470 471
471 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 472 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
472 473
473 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 474 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
474 }; 475 };
475 476
476 } // namespace content 477 } // namespace content
477 478
478 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 479 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698