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

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

Issue 259263003: Fix to remove customised String over IPC for SmartClip (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Build error Created 6 years, 6 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 | « no previous file | Source/core/frame/SmartClip.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 { 43 {
44 } 44 }
45 45
46 SmartClipData(Node* node, IntRect rect, String string) 46 SmartClipData(Node* node, IntRect rect, String string)
47 : m_isEmpty(!node) 47 : m_isEmpty(!node)
48 , m_rect(rect) 48 , m_rect(rect)
49 , m_string(string) 49 , m_string(string)
50 { 50 {
51 } 51 }
52 52
53 String toString(); 53 IntRect rect() const;
54 const String& clipData() const;
54 55
55 private: 56 private:
56 bool m_isEmpty; 57 bool m_isEmpty;
57 IntRect m_rect; 58 IntRect m_rect;
58 String m_string; 59 String m_string;
59 }; 60 };
60 61
61 // SmartClip implements support for the copy operation 62 // SmartClip implements support for the copy operation
62 // with an S-Pen on Samsung devices. The behavior of this 63 // with an S-Pen on Samsung devices. The behavior of this
63 // class is quirky and poorly tested. It's approximately 64 // class is quirky and poorly tested. It's approximately
(...skipping 14 matching lines...) Expand all
78 void collectOverlappingChildNodes(Node* parentNode, const IntRect& cropRect, WillBeHeapVector<RawPtrWillBeMember<Node> >& overlappingNodeInfoTable); 79 void collectOverlappingChildNodes(Node* parentNode, const IntRect& cropRect, WillBeHeapVector<RawPtrWillBeMember<Node> >& overlappingNodeInfoTable);
79 IntRect convertRectToWindow(const IntRect& nodeRect); 80 IntRect convertRectToWindow(const IntRect& nodeRect);
80 String extractTextFromNode(Node*); 81 String extractTextFromNode(Node*);
81 82
82 RefPtr<LocalFrame> m_frame; 83 RefPtr<LocalFrame> m_frame;
83 }; 84 };
84 85
85 } // namespace WebCore 86 } // namespace WebCore
86 87
87 #endif // SmartClip_h 88 #endif // SmartClip_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/SmartClip.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698