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

Side by Side Diff: content/test/test_render_view_host.h

Issue 2702153003: [content] Fix background color update handling in RWHVAura. (Closed)
Patch Set: rebase: employ same mechanism in RWHVMac. Created 3 years, 8 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
« no previous file with comments | « content/public/browser/render_widget_host_view.h ('k') | content/test/test_render_view_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TEST_TEST_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 gfx::NativeView GetNativeView() const override; 70 gfx::NativeView GetNativeView() const override;
71 gfx::NativeViewAccessible GetNativeViewAccessible() override; 71 gfx::NativeViewAccessible GetNativeViewAccessible() override;
72 ui::TextInputClient* GetTextInputClient() override; 72 ui::TextInputClient* GetTextInputClient() override;
73 bool HasFocus() const override; 73 bool HasFocus() const override;
74 void Show() override; 74 void Show() override;
75 void Hide() override; 75 void Hide() override;
76 bool IsShowing() override; 76 bool IsShowing() override;
77 void WasUnOccluded() override; 77 void WasUnOccluded() override;
78 void WasOccluded() override; 78 void WasOccluded() override;
79 gfx::Rect GetViewBounds() const override; 79 gfx::Rect GetViewBounds() const override;
80 void SetBackgroundColor(SkColor color) override;
81 SkColor background_color() const override;
80 #if defined(OS_MACOSX) 82 #if defined(OS_MACOSX)
81 ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const override; 83 ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const override;
82 void SetActive(bool active) override; 84 void SetActive(bool active) override;
83 void ShowDefinitionForSelection() override {} 85 void ShowDefinitionForSelection() override {}
84 bool SupportsSpeech() const override; 86 bool SupportsSpeech() const override;
85 void SpeakSelection() override; 87 void SpeakSelection() override;
86 bool IsSpeaking() const override; 88 bool IsSpeaking() const override;
87 void StopSpeaking() override; 89 void StopSpeaking() override;
88 #endif // defined(OS_MACOSX) 90 #endif // defined(OS_MACOSX)
89 void DidCreateNewRendererCompositorFrameSink() override; 91 void DidCreateNewRendererCompositorFrameSink() override;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 124
123 protected: 125 protected:
124 RenderWidgetHostImpl* rwh_; 126 RenderWidgetHostImpl* rwh_;
125 cc::FrameSinkId frame_sink_id_; 127 cc::FrameSinkId frame_sink_id_;
126 128
127 private: 129 private:
128 bool is_showing_; 130 bool is_showing_;
129 bool is_occluded_; 131 bool is_occluded_;
130 bool did_swap_compositor_frame_; 132 bool did_swap_compositor_frame_;
131 bool did_change_compositor_frame_sink_ = false; 133 bool did_change_compositor_frame_sink_ = false;
134 SkColor background_color_;
132 ui::DummyTextInputClient text_input_client_; 135 ui::DummyTextInputClient text_input_client_;
133 }; 136 };
134 137
135 #if defined(COMPILER_MSVC) 138 #if defined(COMPILER_MSVC)
136 // See comment for same warning on RenderViewHostImpl. 139 // See comment for same warning on RenderViewHostImpl.
137 #pragma warning(push) 140 #pragma warning(push)
138 #pragma warning(disable: 4250) 141 #pragma warning(disable: 4250)
139 #endif 142 #endif
140 143
141 // TestRenderViewHost ---------------------------------------------------------- 144 // TestRenderViewHost ----------------------------------------------------------
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 private: 303 private:
301 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> 304 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors>
302 ScopedSetSupportedScaleFactors; 305 ScopedSetSupportedScaleFactors;
303 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; 306 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_;
304 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 307 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
305 }; 308 };
306 309
307 } // namespace content 310 } // namespace content
308 311
309 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ 312 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_widget_host_view.h ('k') | content/test/test_render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698