| OLD | NEW |
| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 { | 42 { |
| 43 } | 43 } |
| 44 | 44 |
| 45 SmartClipData(Node* node, IntRect rect, String string) | 45 SmartClipData(Node* node, IntRect rect, String string) |
| 46 : m_node(node) | 46 : m_node(node) |
| 47 , m_rect(rect) | 47 , m_rect(rect) |
| 48 , m_string(string) | 48 , m_string(string) |
| 49 { | 49 { |
| 50 } | 50 } |
| 51 | 51 |
| 52 IntRect getRect() const; | 52 String toString(); |
| 53 String getClipData() const; | |
| 54 | 53 |
| 55 private: | 54 private: |
| 56 RefPtr<Node> m_node; | 55 RefPtr<Node> m_node; |
| 57 IntRect m_rect; | 56 IntRect m_rect; |
| 58 String m_string; | 57 String m_string; |
| 59 }; | 58 }; |
| 60 | 59 |
| 61 // SmartClip implements support for the copy operation | 60 // SmartClip implements support for the copy operation |
| 62 // with an S-Pen on Samsung devices. The behavior of this | 61 // with an S-Pen on Samsung devices. The behavior of this |
| 63 // class is quirky and poorly tested. It's approximately | 62 // class is quirky and poorly tested. It's approximately |
| (...skipping 14 matching lines...) Expand all Loading... |
| 78 void collectOverlappingChildNodes(Node* parentNode, const IntRect& cropRect,
Vector<Node*>& overlappingNodeInfoTable); | 77 void collectOverlappingChildNodes(Node* parentNode, const IntRect& cropRect,
Vector<Node*>& overlappingNodeInfoTable); |
| 79 IntRect convertRectToWindow(const IntRect& nodeRect); | 78 IntRect convertRectToWindow(const IntRect& nodeRect); |
| 80 String extractTextFromNode(Node*); | 79 String extractTextFromNode(Node*); |
| 81 | 80 |
| 82 RefPtr<LocalFrame> m_frame; | 81 RefPtr<LocalFrame> m_frame; |
| 83 }; | 82 }; |
| 84 | 83 |
| 85 } // namespace WebCore | 84 } // namespace WebCore |
| 86 | 85 |
| 87 #endif // SmartClip_h | 86 #endif // SmartClip_h |
| OLD | NEW |