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

Side by Side Diff: third_party/WebKit/Source/core/frame/SmartClip.h

Issue 1854543002: Oilpan: Remove WillBe types (part 7) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 }; 63 };
64 64
65 // SmartClip implements support for the copy operation 65 // SmartClip implements support for the copy operation
66 // with an S-Pen on Samsung devices. The behavior of this 66 // with an S-Pen on Samsung devices. The behavior of this
67 // class is quirky and poorly tested. It's approximately 67 // class is quirky and poorly tested. It's approximately
68 // trying to do a poor-mans implementation of columnar 68 // trying to do a poor-mans implementation of columnar
69 // selection followed by a copy operation. 69 // selection followed by a copy operation.
70 class CORE_EXPORT SmartClip { 70 class CORE_EXPORT SmartClip {
71 STACK_ALLOCATED(); 71 STACK_ALLOCATED();
72 public: 72 public:
73 explicit SmartClip(PassRefPtrWillBeRawPtr<LocalFrame>); 73 explicit SmartClip(RawPtr<LocalFrame>);
74 74
75 SmartClipData dataForRect(const IntRect&); 75 SmartClipData dataForRect(const IntRect&);
76 76
77 private: 77 private:
78 float pageScaleFactor(); 78 float pageScaleFactor();
79 79
80 Node* minNodeContainsNodes(Node* minNode, Node* newNode); 80 Node* minNodeContainsNodes(Node* minNode, Node* newNode);
81 Node* findBestOverlappingNode(Node*, const IntRect& cropRectInViewport); 81 Node* findBestOverlappingNode(Node*, const IntRect& cropRectInViewport);
82 bool shouldSkipBackgroundImage(Node*); 82 bool shouldSkipBackgroundImage(Node*);
83 void collectOverlappingChildNodes(Node* parentNode, const IntRect& cropRectI nViewport, WillBeHeapVector<RawPtrWillBeMember<Node>>& overlappingNodeInfoTable) ; 83 void collectOverlappingChildNodes(Node* parentNode, const IntRect& cropRectI nViewport, HeapVector<Member<Node>>& overlappingNodeInfoTable);
84 String extractTextFromNode(Node*); 84 String extractTextFromNode(Node*);
85 85
86 RefPtrWillBeMember<LocalFrame> m_frame; 86 Member<LocalFrame> m_frame;
87 }; 87 };
88 88
89 } // namespace blink 89 } // namespace blink
90 90
91 #endif // SmartClip_h 91 #endif // SmartClip_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/RootFrameViewportTest.cpp ('k') | third_party/WebKit/Source/core/frame/SmartClip.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698