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

Unified Diff: webkit/port/platform/chromium/PopupMenuChromium.cpp

Issue 7419: Move many files that were suffixed Win.cpp to Chromium.cpp, and place them in... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: webkit/port/platform/chromium/PopupMenuChromium.cpp
===================================================================
--- webkit/port/platform/chromium/PopupMenuChromium.cpp (revision 0)
+++ webkit/port/platform/chromium/PopupMenuChromium.cpp (working copy)
@@ -33,7 +33,7 @@
#include "PopupMenu.h"
#include "CharacterNames.h"
-#include "ChromeClientWin.h"
+#include "ChromeClientChromium.h"
#include "Document.h"
#include "Font.h"
#include "Frame.h"
@@ -51,12 +51,9 @@
#include "RenderBlock.h"
#include "RenderTheme.h"
#include "Widget.h"
-#include "WidgetClientWin.h"
+#include "WidgetClientChromium.h"
#pragma warning(pop)
-//#define LOG_ENABLE
-#include "LogWin.h"
-
using namespace WTF;
using namespace Unicode;
@@ -358,10 +355,10 @@
// WidgetClient about it. It should assign us a client.
layout();
- WidgetClientWin* widgetClient =
- static_cast<WidgetClientWin*>(view->client());
- ChromeClientWin* chromeClient =
- static_cast<ChromeClientWin*>(view->frame()->page()->chrome()->client());
+ WidgetClientChromium* widgetClient = static_cast<WidgetClientChromium*>(
+ view->client());
+ ChromeClientChromium* chromeClient = static_cast<ChromeClientChromium*>(
+ view->frame()->page()->chrome()->client());
if (widgetClient && chromeClient) {
// If the popup would extend past the bottom of the screen, open upwards
// instead.
@@ -393,7 +390,7 @@
removeChild(m_listBox.get());
if (client())
- static_cast<WidgetClientWin*>(client())->popupClosed(this);
+ static_cast<WidgetClientChromium*>(client())->popupClosed(this);
}
void PopupContainer::layout()
@@ -669,9 +666,6 @@
r.move(-tx, -ty);
- LOG(("PopupListBox::paint [%d,%d] [r: %d,%d,%d,%d]", tx, ty,
- r.x(), r.y(), r.width(), r.height()));
-
// set clip rect to match revised damage rect
gc->save();
gc->translate(static_cast<float>(tx), static_cast<float>(ty));
@@ -726,10 +720,6 @@
gc->fillRect(rowRect, backColor);
gc->setFillColor(textColor);
- LOG(("paintRow %d, [%d, %d, %d, %d] %x on %x", rowIndex,
- rowRect.x(), rowRect.y(), rowRect.width(), rowRect.height(),
- textColor.rgb(), backColor.rgb()));
-
Font itemFont = getRowFont(rowIndex);
gc->setFont(itemFont);
Property changes on: webkit\port\platform\chromium\PopupMenuChromium.cpp
___________________________________________________________________
Added: svn:mergeinfo
Merged /branches/chrome_webkit_merge_branch/webkit/port/platform/PopupMenuWin.cpp:r69-2775
« no previous file with comments | « webkit/port/platform/chromium/PlatformScrollBarChromium.cpp ('k') | webkit/port/platform/chromium/SSLKeyGeneratorChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698