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

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.h

Issue 2237433004: Adds DevTools commands for forced viewport override. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adress Dmitry's comments + sync. Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 void resetScaleStateImmediately(); 291 void resetScaleStateImmediately();
292 292
293 HitTestResult coreHitTestResultAt(const WebPoint&); 293 HitTestResult coreHitTestResultAt(const WebPoint&);
294 void invalidateRect(const IntRect&); 294 void invalidateRect(const IntRect&);
295 295
296 void setIgnoreInputEvents(bool newValue); 296 void setIgnoreInputEvents(bool newValue);
297 void setBaseBackgroundColor(WebColor); 297 void setBaseBackgroundColor(WebColor);
298 void setBackgroundColorOverride(WebColor); 298 void setBackgroundColorOverride(WebColor);
299 void setZoomFactorOverride(float); 299 void setZoomFactorOverride(float);
300 void setCompositorDeviceScaleFactorOverride(float); 300 void setCompositorDeviceScaleFactorOverride(float);
301 void setRootLayerTransform(const WebSize& offset, float scale); 301 void setRootLayerTransform(const TransformationMatrix&);
302 TransformationMatrix getRootLayerTransformForTesting() const;
302 303
303 Color baseBackgroundColor() const { return m_baseBackgroundColor; } 304 Color baseBackgroundColor() const { return m_baseBackgroundColor; }
304 305
305 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; } 306 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; }
306 307
307 Frame* focusedCoreFrame() const; 308 Frame* focusedCoreFrame() const;
308 309
309 // Returns the currently focused Element or null if no element has focus. 310 // Returns the currently focused Element or null if no element has focus.
310 Element* focusedElement() const; 311 Element* focusedElement() const;
311 312
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 374
374 // Indicates two things: 375 // Indicates two things:
375 // 1) This view may have a new layout now. 376 // 1) This view may have a new layout now.
376 // 2) Calling updateAllLifecyclePhases() is a no-op. 377 // 2) Calling updateAllLifecyclePhases() is a no-op.
377 // After calling WebWidget::updateAllLifecyclePhases(), expect to get this n otification 378 // After calling WebWidget::updateAllLifecyclePhases(), expect to get this n otification
378 // unless the view did not need a layout. 379 // unless the view did not need a layout.
379 void layoutUpdated(WebLocalFrameImpl*); 380 void layoutUpdated(WebLocalFrameImpl*);
380 381
381 void didChangeContentsSize(); 382 void didChangeContentsSize();
382 void pageScaleFactorChanged(); 383 void pageScaleFactorChanged();
384 void mainFrameScrollOffsetChanged();
383 385
384 // Returns true if popup menus should be rendered by the browser, false if 386 // Returns true if popup menus should be rendered by the browser, false if
385 // they should be rendered by WebKit (which is the default). 387 // they should be rendered by WebKit (which is the default).
386 static bool useExternalPopupMenus(); 388 static bool useExternalPopupMenus();
387 389
388 bool shouldAutoResize() const 390 bool shouldAutoResize() const
389 { 391 {
390 return m_shouldAutoResize; 392 return m_shouldAutoResize;
391 } 393 }
392 394
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 bool m_enableFakePageScaleAnimationForTesting; 668 bool m_enableFakePageScaleAnimationForTesting;
667 IntPoint m_fakePageScaleAnimationTargetPosition; 669 IntPoint m_fakePageScaleAnimationTargetPosition;
668 float m_fakePageScaleAnimationPageScaleFactor; 670 float m_fakePageScaleAnimationPageScaleFactor;
669 bool m_fakePageScaleAnimationUseAnchor; 671 bool m_fakePageScaleAnimationUseAnchor;
670 672
671 bool m_doingDragAndDrop; 673 bool m_doingDragAndDrop;
672 674
673 bool m_ignoreInputEvents; 675 bool m_ignoreInputEvents;
674 676
675 float m_compositorDeviceScaleFactorOverride; 677 float m_compositorDeviceScaleFactorOverride;
676 WebSize m_rootLayerOffset; 678 TransformationMatrix m_rootLayerTransform;
677 float m_rootLayerScale;
678 679
679 // Webkit expects keyPress events to be suppressed if the associated keyDown 680 // Webkit expects keyPress events to be suppressed if the associated keyDown
680 // event was handled. Safari implements this behavior by peeking out the 681 // event was handled. Safari implements this behavior by peeking out the
681 // associated WM_CHAR event if the keydown was handled. We emulate 682 // associated WM_CHAR event if the keydown was handled. We emulate
682 // this behavior by setting this flag if the keyDown was handled. 683 // this behavior by setting this flag if the keyDown was handled.
683 bool m_suppressNextKeypressEvent; 684 bool m_suppressNextKeypressEvent;
684 685
685 // Represents whether or not this object should process incoming IME events. 686 // Represents whether or not this object should process incoming IME events.
686 bool m_imeAcceptEvents; 687 bool m_imeAcceptEvents;
687 688
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; 763 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor;
763 }; 764 };
764 765
765 // We have no ways to check if the specified WebView is an instance of 766 // We have no ways to check if the specified WebView is an instance of
766 // WebViewImpl because WebViewImpl is the only implementation of WebView. 767 // WebViewImpl because WebViewImpl is the only implementation of WebView.
767 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 768 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
768 769
769 } // namespace blink 770 } // namespace blink
770 771
771 #endif 772 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/InspectorEmulationAgent.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698