Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 90 void WasOccluded() override {} | 90 void WasOccluded() override {} |
| 91 bool IsShowingContextMenu() const override; | 91 bool IsShowingContextMenu() const override; |
| 92 void SetShowingContextMenu(bool showing_menu) override; | 92 void SetShowingContextMenu(bool showing_menu) override; |
| 93 base::string16 GetSelectedText() const override; | 93 base::string16 GetSelectedText() const override; |
| 94 bool IsMouseLocked() override; | 94 bool IsMouseLocked() override; |
| 95 gfx::Size GetVisibleViewportSize() const override; | 95 gfx::Size GetVisibleViewportSize() const override; |
| 96 void SetInsets(const gfx::Insets& insets) override; | 96 void SetInsets(const gfx::Insets& insets) override; |
| 97 void BeginFrameSubscription( | 97 void BeginFrameSubscription( |
| 98 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; | 98 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; |
| 99 void EndFrameSubscription() override; | 99 void EndFrameSubscription() override; |
| 100 #if defined(OS_MACOSX) | |
| 101 ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const override; | |
|
Avi (use Gerrit)
2016/05/04 21:01:03
Why is this the only thing in an #if MACOSX block?
| |
| 102 #endif | |
| 100 | 103 |
| 101 // This only needs to be overridden by RenderWidgetHostViewBase subclasses | 104 // This only needs to be overridden by RenderWidgetHostViewBase subclasses |
| 102 // that handle content embedded within other RenderWidgetHostViews. | 105 // that handle content embedded within other RenderWidgetHostViews. |
| 103 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point) override; | 106 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point) override; |
| 104 gfx::PointF TransformPointToRootCoordSpaceF( | 107 gfx::PointF TransformPointToRootCoordSpaceF( |
| 105 const gfx::PointF& point) override; | 108 const gfx::PointF& point) override; |
| 106 | 109 |
| 107 // IPC::Listener implementation: | 110 // IPC::Listener implementation: |
| 108 bool OnMessageReceived(const IPC::Message& msg) override; | 111 bool OnMessageReceived(const IPC::Message& msg) override; |
| 109 | 112 |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 435 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 438 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 436 | 439 |
| 437 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 440 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 438 | 441 |
| 439 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 442 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 440 }; | 443 }; |
| 441 | 444 |
| 442 } // namespace content | 445 } // namespace content |
| 443 | 446 |
| 444 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 447 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |