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

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

Issue 10696166: Remove #pragma once from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TEST_TEST_BACKING_STORE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_BACKING_STORE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_BACKING_STORE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_BACKING_STORE_H_
7 #pragma once
8 7
9 #include "base/basictypes.h" 8 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
11 #include "content/browser/renderer_host/backing_store.h" 10 #include "content/browser/renderer_host/backing_store.h"
12 11
13 class TestBackingStore : public BackingStore { 12 class TestBackingStore : public BackingStore {
14 public: 13 public:
15 TestBackingStore(content::RenderWidgetHost* widget, const gfx::Size& size); 14 TestBackingStore(content::RenderWidgetHost* widget, const gfx::Size& size);
16 virtual ~TestBackingStore(); 15 virtual ~TestBackingStore();
17 16
18 // BackingStore implementation. 17 // BackingStore implementation.
19 virtual void PaintToBackingStore( 18 virtual void PaintToBackingStore(
20 content::RenderProcessHost* process, 19 content::RenderProcessHost* process,
21 TransportDIB::Id bitmap, 20 TransportDIB::Id bitmap,
22 const gfx::Rect& bitmap_rect, 21 const gfx::Rect& bitmap_rect,
23 const std::vector<gfx::Rect>& copy_rects, 22 const std::vector<gfx::Rect>& copy_rects,
24 float scale_factor, 23 float scale_factor,
25 const base::Closure& completion_callback, 24 const base::Closure& completion_callback,
26 bool* scheduled_completion_callback) OVERRIDE; 25 bool* scheduled_completion_callback) OVERRIDE;
27 virtual bool CopyFromBackingStore(const gfx::Rect& rect, 26 virtual bool CopyFromBackingStore(const gfx::Rect& rect,
28 skia::PlatformCanvas* output) OVERRIDE; 27 skia::PlatformCanvas* output) OVERRIDE;
29 virtual void ScrollBackingStore(int dx, int dy, 28 virtual void ScrollBackingStore(int dx, int dy,
30 const gfx::Rect& clip_rect, 29 const gfx::Rect& clip_rect,
31 const gfx::Size& view_size) OVERRIDE; 30 const gfx::Size& view_size) OVERRIDE;
32 private: 31 private:
33 DISALLOW_COPY_AND_ASSIGN(TestBackingStore); 32 DISALLOW_COPY_AND_ASSIGN(TestBackingStore);
34 }; 33 };
35 34
36 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_BACKING_STORE_H_ 35 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_TEST_BACKING_STORE_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/tap_suppression_controller.h ('k') | content/browser/renderer_host/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698