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

Side by Side Diff: chrome/browser/renderer_host/backing_store.h

Issue 19486: Lint cleanup. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/renderer_host/backing_store.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_H_
7 7
8 #if defined(OS_WIN)
9 #include <windows.h>
brettw 2009/01/30 00:26:22 This actually needs to be below to after build_con
10 #endif
11
8 #include "base/basictypes.h" 12 #include "base/basictypes.h"
9 #include "base/gfx/rect.h" 13 #include "base/gfx/rect.h"
10 #include "base/gfx/size.h" 14 #include "base/gfx/size.h"
11 #include "base/process.h" 15 #include "base/process.h"
12 #include "build/build_config.h" 16 #include "build/build_config.h"
13 #include "chrome/common/mru_cache.h" 17 #include "chrome/common/mru_cache.h"
14 18
15 #if defined(OS_WIN)
16 #include <windows.h>
17 #endif
18
19 class RenderWidgetHost; 19 class RenderWidgetHost;
20 20
21 // BackingStore ---------------------------------------------------------------- 21 // BackingStore ----------------------------------------------------------------
22 22
23 // Represents a backing store for the pixels in a RenderWidgetHost. 23 // Represents a backing store for the pixels in a RenderWidgetHost.
24 class BackingStore { 24 class BackingStore {
25 public: 25 public:
26 BackingStore(const gfx::Size& size); 26 explicit BackingStore(const gfx::Size& size);
27 ~BackingStore(); 27 ~BackingStore();
28 28
29 const gfx::Size& size() { return size_; } 29 const gfx::Size& size() { return size_; }
30 30
31 #if defined(OS_WIN) 31 #if defined(OS_WIN)
32 HDC hdc() { return hdc_; } 32 HDC hdc() { return hdc_; }
33 #endif 33 #endif
34 34
35 // Paints the bitmap from the renderer onto the backing store. 35 // Paints the bitmap from the renderer onto the backing store.
36 // TODO(port): The HANDLE is a shared section on Windows. Abstract this. 36 // TODO(port): The HANDLE is a shared section on Windows. Abstract this.
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 static void RemoveBackingStore(RenderWidgetHost* host); 121 static void RemoveBackingStore(RenderWidgetHost* host);
122 122
123 private: 123 private:
124 // Not intended for instantiation. 124 // Not intended for instantiation.
125 BackingStoreManager() {} 125 BackingStoreManager() {}
126 126
127 DISALLOW_COPY_AND_ASSIGN(BackingStoreManager); 127 DISALLOW_COPY_AND_ASSIGN(BackingStoreManager);
128 }; 128 };
129 129
130 #endif // CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_H_ 130 #endif // CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/backing_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698