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

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

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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_BACKING_STORE_WIN_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_WIN_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_WIN_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <windows.h> 9 #include <windows.h>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "content/browser/renderer_host/backing_store.h" 13 #include "content/browser/renderer_host/backing_store.h"
14 14
15 class BackingStoreWin : public BackingStore { 15 class BackingStoreWin : public BackingStore {
16 public: 16 public:
17 BackingStoreWin(RenderWidgetHost* widget, const gfx::Size& size); 17 BackingStoreWin(content::RenderWidgetHost* widget, const gfx::Size& size);
18 virtual ~BackingStoreWin(); 18 virtual ~BackingStoreWin();
19 19
20 HDC hdc() { return hdc_; } 20 HDC hdc() { return hdc_; }
21 21
22 // Returns true if we should convert to the monitor profile when painting. 22 // Returns true if we should convert to the monitor profile when painting.
23 static bool ColorManagementEnabled(); 23 static bool ColorManagementEnabled();
24 24
25 // BackingStore implementation. 25 // BackingStore implementation.
26 virtual size_t MemorySize() OVERRIDE; 26 virtual size_t MemorySize() OVERRIDE;
27 virtual void PaintToBackingStore( 27 virtual void PaintToBackingStore(
(...skipping 19 matching lines...) Expand all
47 // Handle to the original bitmap in the dc. 47 // Handle to the original bitmap in the dc.
48 HANDLE original_bitmap_; 48 HANDLE original_bitmap_;
49 49
50 // Number of bits per pixel of the screen. 50 // Number of bits per pixel of the screen.
51 int color_depth_; 51 int color_depth_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(BackingStoreWin); 53 DISALLOW_COPY_AND_ASSIGN(BackingStoreWin);
54 }; 54 };
55 55
56 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_WIN_H_ 56 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_WIN_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/backing_store_skia.cc ('k') | content/browser/renderer_host/backing_store_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698