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

Side by Side Diff: Source/web/ValidationMessageClientImpl.cpp

Issue 26296002: Move HostWindow.h from core/platform to platform in preparation for moving more parts of core/platf… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Added HostWindow.h to blink_platform.gypi Created 7 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 unified diff | Download patch
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "ValidationMessageClientImpl.h" 27 #include "ValidationMessageClientImpl.h"
28 28
29 #include "WebTextDirection.h" 29 #include "WebTextDirection.h"
30 #include "WebValidationMessageClient.h" 30 #include "WebValidationMessageClient.h"
31 #include "WebViewImpl.h" 31 #include "WebViewImpl.h"
32 #include "core/dom/Element.h" 32 #include "core/dom/Element.h"
33 #include "core/page/FrameView.h" 33 #include "core/page/FrameView.h"
34 #include "core/platform/HostWindow.h"
35 #include "core/rendering/RenderObject.h" 34 #include "core/rendering/RenderObject.h"
36 #include "wtf/CurrentTime.h" 35 #include "platform/HostWindow.h"
37 #include "public/platform/WebRect.h" 36 #include "public/platform/WebRect.h"
38 #include "public/platform/WebString.h" 37 #include "public/platform/WebString.h"
39 #include "public/web/WebViewClient.h" 38 #include "public/web/WebViewClient.h"
39 #include "wtf/CurrentTime.h"
40 40
41 using namespace WebCore; 41 using namespace WebCore;
42 42
43 namespace WebKit { 43 namespace WebKit {
44 44
45 ValidationMessageClientImpl::ValidationMessageClientImpl(WebViewImpl& webView, W ebValidationMessageClient* client) 45 ValidationMessageClientImpl::ValidationMessageClientImpl(WebViewImpl& webView, W ebValidationMessageClient* client)
46 : m_webView(webView) 46 : m_webView(webView)
47 , m_client(client) 47 , m_client(client)
48 , m_currentAnchor(0) 48 , m_currentAnchor(0)
49 , m_lastPageScaleFactor(1) 49 , m_lastPageScaleFactor(1)
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 if (newAnchorRectInScreen == m_lastAnchorRectInScreen && m_webView.pageScale Factor() == m_lastPageScaleFactor) 144 if (newAnchorRectInScreen == m_lastAnchorRectInScreen && m_webView.pageScale Factor() == m_lastPageScaleFactor)
145 return; 145 return;
146 m_lastAnchorRectInScreen = newAnchorRectInScreen; 146 m_lastAnchorRectInScreen = newAnchorRectInScreen;
147 m_lastPageScaleFactor = m_webView.pageScaleFactor(); 147 m_lastPageScaleFactor = m_webView.pageScaleFactor();
148 if (m_client) 148 if (m_client)
149 m_client->moveValidationMessage(newAnchorRect); 149 m_client->moveValidationMessage(newAnchorRect);
150 m_webView.client()->moveValidationMessage(newAnchorRect); 150 m_webView.client()->moveValidationMessage(newAnchorRect);
151 } 151 }
152 152
153 } 153 }
OLDNEW
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698