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

Side by Side Diff: content/common/frame_owner_properties.cc

Issue 2156883002: Use content::FrameOwnerProperties instead of blink::WebFrameOwnerProperties in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-delegation-frame-owner-properties
Patch Set: Use this everywhere Created 4 years, 5 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/common/frame_owner_properties.h ('k') | content/public/test/mock_render_thread.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "content/common/frame_owner_properties.h" 5 #include "content/common/frame_owner_properties.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 FrameOwnerProperties::FrameOwnerProperties() 9 FrameOwnerProperties::FrameOwnerProperties()
10 : scrolling_mode(blink::WebFrameOwnerProperties::ScrollingMode::Auto), 10 : scrolling_mode(blink::WebFrameOwnerProperties::ScrollingMode::Auto),
(...skipping 23 matching lines...) Expand all
34 result.scrollingMode = scrolling_mode; 34 result.scrollingMode = scrolling_mode;
35 result.marginWidth = margin_width; 35 result.marginWidth = margin_width;
36 result.marginHeight = margin_height; 36 result.marginHeight = margin_height;
37 result.allowFullscreen = allow_fullscreen; 37 result.allowFullscreen = allow_fullscreen;
38 result.delegatedPermissions = 38 result.delegatedPermissions =
39 blink::WebVector<blink::WebPermissionType>(delegated_permissions); 39 blink::WebVector<blink::WebPermissionType>(delegated_permissions);
40 40
41 return result; 41 return result;
42 } 42 }
43 43
44 bool FrameOwnerProperties::operator==(const FrameOwnerProperties& other) const {
45 return scrolling_mode == other.scrolling_mode &&
46 margin_width == other.margin_width &&
47 margin_height == other.margin_height &&
48 allow_fullscreen == other.allow_fullscreen &&
49 std::equal(delegated_permissions.begin(), delegated_permissions.end(),
50 other.delegated_permissions.begin());
51 }
52
44 } // namespace content 53 } // namespace content
OLDNEW
« no previous file with comments | « content/common/frame_owner_properties.h ('k') | content/public/test/mock_render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698