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

Side by Side Diff: android_webview/browser/test/fake_window.h

Issue 1852513003: Convert //android_webview to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git is hard Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ANDROID_WEBVIEW_BROWSER_TEST_FAKE_WINDOW_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_TEST_FAKE_WINDOW_H_
6 #define ANDROID_WEBVIEW_BROWSER_TEST_FAKE_WINDOW_H_ 6 #define ANDROID_WEBVIEW_BROWSER_TEST_FAKE_WINDOW_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "android_webview/public/browser/draw_gl.h" 10 #include "android_webview/public/browser/draw_gl.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 BrowserViewRenderer* const view_; 74 BrowserViewRenderer* const view_;
75 WindowHooks* const hooks_; 75 WindowHooks* const hooks_;
76 const gfx::Size surface_size_; 76 const gfx::Size surface_size_;
77 77
78 // UI thread members. 78 // UI thread members.
79 gfx::Rect location_; 79 gfx::Rect location_;
80 bool on_draw_hardware_pending_; 80 bool on_draw_hardware_pending_;
81 base::SequenceChecker ui_checker_; 81 base::SequenceChecker ui_checker_;
82 82
83 // Render thread members. 83 // Render thread members.
84 scoped_ptr<base::Thread> render_thread_; 84 std::unique_ptr<base::Thread> render_thread_;
85 base::SequenceChecker rt_checker_; 85 base::SequenceChecker rt_checker_;
86 SharedRendererState* functor_; 86 SharedRendererState* functor_;
87 scoped_refptr<base::SingleThreadTaskRunner> render_thread_loop_; 87 scoped_refptr<base::SingleThreadTaskRunner> render_thread_loop_;
88 scoped_refptr<gfx::GLSurface> surface_; 88 scoped_refptr<gfx::GLSurface> surface_;
89 scoped_refptr<gfx::GLContext> context_; 89 scoped_refptr<gfx::GLContext> context_;
90 bool context_current_; 90 bool context_current_;
91 91
92 base::WeakPtrFactory<FakeWindow> weak_ptr_factory_; 92 base::WeakPtrFactory<FakeWindow> weak_ptr_factory_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(FakeWindow); 94 DISALLOW_COPY_AND_ASSIGN(FakeWindow);
95 }; 95 };
96 96
97 } // namespace android_webview 97 } // namespace android_webview
98 98
99 #endif // ANDROID_WEBVIEW_BROWSER_TEST_FAKE_WINDOW_H_ 99 #endif // ANDROID_WEBVIEW_BROWSER_TEST_FAKE_WINDOW_H_
OLDNEW
« no previous file with comments | « android_webview/browser/shared_renderer_state.cc ('k') | android_webview/browser/test/rendering_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698