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

Side by Side Diff: sky/engine/web/ChromeClientImpl.cpp

Issue 654693004: Remove meta viewport and @viewport CSS rules. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 320
321 m_webView->client()->setMouseOverURL(url); 321 m_webView->client()->setMouseOverURL(url);
322 } 322 }
323 323
324 void ChromeClientImpl::setToolTip(const String& tooltipText, TextDirection dir) 324 void ChromeClientImpl::setToolTip(const String& tooltipText, TextDirection dir)
325 { 325 {
326 if (m_webView->client()) 326 if (m_webView->client())
327 m_webView->client()->setToolTipText(tooltipText, toWebTextDirection(dir) ); 327 m_webView->client()->setToolTipText(tooltipText, toWebTextDirection(dir) );
328 } 328 }
329 329
330 void ChromeClientImpl::dispatchViewportPropertiesDidChange(const ViewportDescrip tion& description) const
331 {
332 m_webView->updatePageDefinedViewportConstraints(description);
333 }
334
335 void ChromeClientImpl::setCursor(const Cursor& cursor) 330 void ChromeClientImpl::setCursor(const Cursor& cursor)
336 { 331 {
337 setCursor(WebCursorInfo(cursor)); 332 setCursor(WebCursorInfo(cursor));
338 } 333 }
339 334
340 void ChromeClientImpl::setCursor(const WebCursorInfo& cursor) 335 void ChromeClientImpl::setCursor(const WebCursorInfo& cursor)
341 { 336 {
342 if (m_webView->client()) 337 if (m_webView->client())
343 m_webView->client()->didChangeCursor(cursor); 338 m_webView->client()->didChangeCursor(cursor);
344 } 339 }
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 webFrame->client()->forwardInputEvent(&webEvent); 416 webFrame->client()->forwardInputEvent(&webEvent);
422 } else if (event->isWheelEvent()) { 417 } else if (event->isWheelEvent()) {
423 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), 0, *static_cas t<WheelEvent*>(event)); 418 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), 0, *static_cas t<WheelEvent*>(event));
424 if (webEvent.type == WebInputEvent::Undefined) 419 if (webEvent.type == WebInputEvent::Undefined)
425 return; 420 return;
426 webFrame->client()->forwardInputEvent(&webEvent); 421 webFrame->client()->forwardInputEvent(&webEvent);
427 } 422 }
428 } 423 }
429 424
430 } // namespace blink 425 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698