HWndDC is a better name than HwndDC.
authorlevin@chromium.org <levin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Jan 2012 17:51:15 +0000 (17:51 +0000)
committerlevin@chromium.org <levin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Jan 2012 17:51:15 +0000 (17:51 +0000)
https://bugs.webkit.org/show_bug.cgi?id=76281

Reviewed by Darin Adler.

Source/JavaScriptCore:

* JavaScriptCore.gyp/JavaScriptCore.gyp:
* JavaScriptCore.gypi:
* wtf/win/HWndDCWin.h: Renamed from Source/JavaScriptCore/wtf/win/HwndDCWin.h.
(WTF::HWndDC::HWndDC):
(WTF::HWndDC::~HWndDC):
(WTF::HWndDC::operator HDC):

Source/WebKit/chromium:

* src/win/WebScreenInfoFactory.cpp:
(WebKit::WebScreenInfoFactory::screenInfo):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@104946 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp
Source/JavaScriptCore/JavaScriptCore.gypi
Source/JavaScriptCore/wtf/win/HWndDCWin.h [moved from Source/JavaScriptCore/wtf/win/HwndDCWin.h with 95% similarity]
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/src/win/WebScreenInfoFactory.cpp

index a88b938..ac0069a 100644 (file)
@@ -1,3 +1,17 @@
+2012-01-13  David Levin  <levin@chromium.org>
+
+        HWndDC is a better name than HwndDC.
+        https://bugs.webkit.org/show_bug.cgi?id=76281
+
+        Reviewed by Darin Adler.
+
+        * JavaScriptCore.gyp/JavaScriptCore.gyp:
+        * JavaScriptCore.gypi:
+        * wtf/win/HWndDCWin.h: Renamed from Source/JavaScriptCore/wtf/win/HwndDCWin.h.
+        (WTF::HWndDC::HWndDC):
+        (WTF::HWndDC::~HWndDC):
+        (WTF::HWndDC::operator HDC):
+
 2012-01-13  YoungTaeck Song  <youngtaeck.song@samsung.com>
 
         [EFL] Add OwnPtr specialization for Eina_Module.
index 0e81f32..00f8129 100644 (file)
             ['include', 'Thread(ing|Specific)Win\\.cpp$'],
             ['exclude', 'OSAllocatorPosix\\.cpp$'],
             ['include', 'OSAllocatorWin\\.cpp$'],
-            ['include', 'win/HwndDCWin\\.h$'],
+            ['include', 'win/HWndDCWin\\.h$'],
           ],
           'include_dirs!': [
             '<(SHARED_INTERMEDIATE_DIR)/webkit',
index 8470809..b70860a 100644 (file)
             'wtf/unicode/wince/UnicodeWinCE.cpp',
             'wtf/unicode/wince/UnicodeWinCE.h',
             'wtf/win/MainThreadWin.cpp',
-            'wtf/win/HwndDCWin.h',
+            'wtf/win/HWndDCWin.h',
             'wtf/win/OwnPtrWin.cpp',
             'wtf/wince/FastMallocWinCE.h',
             'wtf/wince/MemoryManager.cpp',
similarity index 95%
rename from Source/JavaScriptCore/wtf/win/HwndDCWin.h
rename to Source/JavaScriptCore/wtf/win/HWndDCWin.h
index dbb1f89..7dd3269 100644 (file)
 
 namespace WTF {
 
-class HwndDC {
+class HWndDC {
 public:
-    explicit HwndDC(HWND hwnd)
+    explicit HWndDC(HWND hwnd)
         : m_hwnd(hwnd)
         , m_hdc(::GetDC(hwnd))
     {
     }
 
-    ~HwndDC()
+    ~HWndDC()
     {
         if (m_hdc)
             ::ReleaseDC(m_hwnd, m_hdc);
@@ -53,4 +53,4 @@ private:
 
 }
 
-using WTF::HwndDC;
+using WTF::HWndDC;
index 46ee48f..9058569 100644 (file)
@@ -1,3 +1,13 @@
+2012-01-13  David Levin  <levin@chromium.org>
+
+        HWndDC is a better name than HwndDC.
+        https://bugs.webkit.org/show_bug.cgi?id=76281
+
+        Reviewed by Darin Adler.
+
+        * src/win/WebScreenInfoFactory.cpp:
+        (WebKit::WebScreenInfoFactory::screenInfo):
+
 2012-01-13  Sheriff Bot  <webkit.review.bot@gmail.com>
 
         Unreviewed.  Rolled DEPS.
index 20aeccd..2d940bc 100644 (file)
@@ -33,7 +33,7 @@
 
 #include "WebScreenInfo.h"
 
-#include <wtf/win/HwndDCWin.h>
+#include <wtf/win/HWndDCWin.h>
 
 #include <windows.h>
 
@@ -62,7 +62,7 @@ WebScreenInfo WebScreenInfoFactory::screenInfo(HWND window)
     devMode.dmDriverExtra = 0;
     EnumDisplaySettings(monitorInfo.szDevice, ENUM_CURRENT_SETTINGS, &devMode);
 
-    HwndDC hdc(0);
+    HWndDC hdc(0);
     ASSERT(hdc);
 
     WebScreenInfo results;