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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 1003113003: [DevTools] Handle emulation in embedder, call into web API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests and mac popups compilation Created 5 years, 9 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 | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 bool CanComposeInline() override; 502 bool CanComposeInline() override;
503 void DidCommitCompositorFrame() override; 503 void DidCommitCompositorFrame() override;
504 void DidCompletePageScaleAnimation() override; 504 void DidCompletePageScaleAnimation() override;
505 505
506 protected: 506 protected:
507 explicit RenderViewImpl(const ViewMsg_New_Params& params); 507 explicit RenderViewImpl(const ViewMsg_New_Params& params);
508 508
509 void Initialize(const ViewMsg_New_Params& params, 509 void Initialize(const ViewMsg_New_Params& params,
510 CompositorDependencies* compositor_deps, 510 CompositorDependencies* compositor_deps,
511 bool was_created_by_renderer); 511 bool was_created_by_renderer);
512 void SetScreenMetricsEmulationParameters(float device_scale_factor, 512 void SetScreenMetricsEmulationParameters(
513 const gfx::Point& root_layer_offset, 513 bool enabled,
514 float root_layer_scale) override; 514 const blink::WebDeviceEmulationParams& params) override;
515 515
516 // Do not delete directly. This class is reference counted. 516 // Do not delete directly. This class is reference counted.
517 virtual ~RenderViewImpl(); 517 virtual ~RenderViewImpl();
518 518
519 private: 519 private:
520 // For unit tests. 520 // For unit tests.
521 friend class PepperDeviceTest; 521 friend class PepperDeviceTest;
522 friend class RenderViewImplTest; 522 friend class RenderViewImplTest;
523 friend class RenderViewTest; 523 friend class RenderViewTest;
524 friend class RendererAccessibilityTest; 524 friend class RendererAccessibilityTest;
(...skipping 19 matching lines...) Expand all
544 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnUpdateWebPreferences); 544 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnUpdateWebPreferences);
545 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, 545 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
546 SetEditableSelectionAndComposition); 546 SetEditableSelectionAndComposition);
547 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, StaleNavigationsIgnored); 547 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, StaleNavigationsIgnored);
548 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, 548 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
549 DontIgnoreBackAfterNavEntryLimit); 549 DontIgnoreBackAfterNavEntryLimit);
550 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, UpdateTargetURLWithInvalidURL); 550 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, UpdateTargetURLWithInvalidURL);
551 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, 551 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
552 GetCompositionCharacterBoundsTest); 552 GetCompositionCharacterBoundsTest);
553 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavigationHttpPost); 553 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavigationHttpPost);
554 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ScreenMetricsEmulation);
554 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, 555 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
555 DecideNavigationPolicyHandlesAllTopLevel); 556 DecideNavigationPolicyHandlesAllTopLevel);
556 #if defined(OS_MACOSX) 557 #if defined(OS_MACOSX)
557 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, MacTestCmdUp); 558 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, MacTestCmdUp);
558 #endif 559 #endif
559 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SetHistoryLengthAndOffset); 560 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SetHistoryLengthAndOffset);
560 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ZoomLimit); 561 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ZoomLimit);
561 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, NavigateFrame); 562 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, NavigateFrame);
562 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, BasicRenderFrame); 563 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, BasicRenderFrame);
563 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, TextInputTypeWithPepper); 564 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, TextInputTypeWithPepper);
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 // use the Observer interface to filter IPC messages and receive frame change 1050 // use the Observer interface to filter IPC messages and receive frame change
1050 // notifications. 1051 // notifications.
1051 // --------------------------------------------------------------------------- 1052 // ---------------------------------------------------------------------------
1052 1053
1053 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1054 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1054 }; 1055 };
1055 1056
1056 } // namespace content 1057 } // namespace content
1057 1058
1058 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1059 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698