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

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: Created 4 years, 4 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 void resetScaleStateImmediately(); 292 void resetScaleStateImmediately();
293 293
294 HitTestResult coreHitTestResultAt(const WebPoint&); 294 HitTestResult coreHitTestResultAt(const WebPoint&);
295 void invalidateRect(const IntRect&); 295 void invalidateRect(const IntRect&);
296 296
297 void setIgnoreInputEvents(bool newValue); 297 void setIgnoreInputEvents(bool newValue);
298 void setBaseBackgroundColor(WebColor); 298 void setBaseBackgroundColor(WebColor);
299 void setBackgroundColorOverride(WebColor); 299 void setBackgroundColorOverride(WebColor);
300 void setZoomFactorOverride(float); 300 void setZoomFactorOverride(float);
301 void setCompositorDeviceScaleFactorOverride(float); 301 void setCompositorDeviceScaleFactorOverride(float);
302 void setRootLayerTransform(const WebSize& offset, float scale); 302 void setRootLayerTransform(const TransformationMatrix&);
303 303
304 Color baseBackgroundColor() const { return m_baseBackgroundColor; } 304 Color baseBackgroundColor() const { return m_baseBackgroundColor; }
305 305
306 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; } 306 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; }
307 307
308 Frame* focusedCoreFrame() const; 308 Frame* focusedCoreFrame() const;
309 309
310 // 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.
311 Element* focusedElement() const; 311 Element* focusedElement() const;
312 312
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 374
375 // Indicates two things: 375 // Indicates two things:
376 // 1) This view may have a new layout now. 376 // 1) This view may have a new layout now.
377 // 2) Calling updateAllLifecyclePhases() is a no-op. 377 // 2) Calling updateAllLifecyclePhases() is a no-op.
378 // After calling WebWidget::updateAllLifecyclePhases(), expect to get this n otification 378 // After calling WebWidget::updateAllLifecyclePhases(), expect to get this n otification
379 // unless the view did not need a layout. 379 // unless the view did not need a layout.
380 void layoutUpdated(WebLocalFrameImpl*); 380 void layoutUpdated(WebLocalFrameImpl*);
381 381
382 void didChangeContentsSize(); 382 void didChangeContentsSize();
383 void pageScaleFactorChanged(); 383 void pageScaleFactorChanged();
384 void mainFrameScrollOffsetChanged();
384 385
385 // 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
386 // they should be rendered by WebKit (which is the default). 387 // they should be rendered by WebKit (which is the default).
387 static bool useExternalPopupMenus(); 388 static bool useExternalPopupMenus();
388 389
389 bool shouldAutoResize() const 390 bool shouldAutoResize() const
390 { 391 {
391 return m_shouldAutoResize; 392 return m_shouldAutoResize;
392 } 393 }
393 394
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 bool m_enableFakePageScaleAnimationForTesting; 681 bool m_enableFakePageScaleAnimationForTesting;
681 IntPoint m_fakePageScaleAnimationTargetPosition; 682 IntPoint m_fakePageScaleAnimationTargetPosition;
682 float m_fakePageScaleAnimationPageScaleFactor; 683 float m_fakePageScaleAnimationPageScaleFactor;
683 bool m_fakePageScaleAnimationUseAnchor; 684 bool m_fakePageScaleAnimationUseAnchor;
684 685
685 bool m_doingDragAndDrop; 686 bool m_doingDragAndDrop;
686 687
687 bool m_ignoreInputEvents; 688 bool m_ignoreInputEvents;
688 689
689 float m_compositorDeviceScaleFactorOverride; 690 float m_compositorDeviceScaleFactorOverride;
690 WebSize m_rootLayerOffset; 691 TransformationMatrix m_rootLayerTransform;
691 float m_rootLayerScale;
692 692
693 // Webkit expects keyPress events to be suppressed if the associated keyDown 693 // Webkit expects keyPress events to be suppressed if the associated keyDown
694 // event was handled. Safari implements this behavior by peeking out the 694 // event was handled. Safari implements this behavior by peeking out the
695 // associated WM_CHAR event if the keydown was handled. We emulate 695 // associated WM_CHAR event if the keydown was handled. We emulate
696 // this behavior by setting this flag if the keyDown was handled. 696 // this behavior by setting this flag if the keyDown was handled.
697 bool m_suppressNextKeypressEvent; 697 bool m_suppressNextKeypressEvent;
698 698
699 // Represents whether or not this object should process incoming IME events. 699 // Represents whether or not this object should process incoming IME events.
700 bool m_imeAcceptEvents; 700 bool m_imeAcceptEvents;
701 701
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; 779 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor;
780 }; 780 };
781 781
782 // We have no ways to check if the specified WebView is an instance of 782 // We have no ways to check if the specified WebView is an instance of
783 // WebViewImpl because WebViewImpl is the only implementation of WebView. 783 // WebViewImpl because WebViewImpl is the only implementation of WebView.
784 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 784 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
785 785
786 } // namespace blink 786 } // namespace blink
787 787
788 #endif 788 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698