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

Side by Side Diff: public/web/WebSurroundingText.h

Issue 454103003: Cleanup namespace usage in public/web/Web[N-Z]*.h. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « public/web/WebStorageEventDispatcher.h ('k') | public/web/WebTextAreaElement.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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 13 matching lines...) Expand all
24 24
25 #ifndef WebSurroundingText_h 25 #ifndef WebSurroundingText_h
26 #define WebSurroundingText_h 26 #define WebSurroundingText_h
27 27
28 #include "../platform/WebPrivateOwnPtr.h" 28 #include "../platform/WebPrivateOwnPtr.h"
29 #include "../platform/WebString.h" 29 #include "../platform/WebString.h"
30 #include "WebNode.h" 30 #include "WebNode.h"
31 #include "WebRange.h" 31 #include "WebRange.h"
32 32
33 namespace blink { 33 namespace blink {
34
34 class SurroundingText; 35 class SurroundingText;
35 }
36
37 namespace blink {
38
39 class WebHitTestResult; 36 class WebHitTestResult;
40 class WebNode; 37 class WebNode;
41 class WebRange; 38 class WebRange;
42 struct WebPoint; 39 struct WebPoint;
43 40
44 // WebSurroundingText is a Blink API that gives access to the SurroundingText 41 // WebSurroundingText is a Blink API that gives access to the SurroundingText
45 // API. It allows caller to know the text surrounding a point or a range. 42 // API. It allows caller to know the text surrounding a point or a range.
46 class WebSurroundingText { 43 class WebSurroundingText {
47 public: 44 public:
48 WebSurroundingText() { } 45 WebSurroundingText() { }
(...skipping 26 matching lines...) Expand all
75 BLINK_EXPORT size_t startOffsetInTextContent() const; 72 BLINK_EXPORT size_t startOffsetInTextContent() const;
76 73
77 // End offset of the initial text in the text content. 74 // End offset of the initial text in the text content.
78 BLINK_EXPORT size_t endOffsetInTextContent() const; 75 BLINK_EXPORT size_t endOffsetInTextContent() const;
79 76
80 // Convert start/end positions in the content text string into a WebKit text 77 // Convert start/end positions in the content text string into a WebKit text
81 // range. 78 // range.
82 BLINK_EXPORT WebRange rangeFromContentOffsets(size_t startOffsetInContent, s ize_t endOffsetInContent); 79 BLINK_EXPORT WebRange rangeFromContentOffsets(size_t startOffsetInContent, s ize_t endOffsetInContent);
83 80
84 protected: 81 protected:
85 WebPrivateOwnPtr<blink::SurroundingText> m_private; 82 WebPrivateOwnPtr<SurroundingText> m_private;
86 }; 83 };
87 84
88 } // namespace blink 85 } // namespace blink
89 86
90 #endif 87 #endif
OLDNEW
« no previous file with comments | « public/web/WebStorageEventDispatcher.h ('k') | public/web/WebTextAreaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698