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

Side by Side Diff: third_party/WebKit/public/web/WebRange.h

Issue 2542203004: blink: Cleanup class/struct forward declarations (Closed)
Patch Set: Created 4 years 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 23 matching lines...) Expand all
34 #include "public/platform/WebCommon.h" 34 #include "public/platform/WebCommon.h"
35 #if BLINK_IMPLEMENTATION 35 #if BLINK_IMPLEMENTATION
36 #include "core/editing/EphemeralRange.h" 36 #include "core/editing/EphemeralRange.h"
37 #endif 37 #endif
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class LocalFrame; 41 class LocalFrame;
42 class PlainTextRange; 42 class PlainTextRange;
43 class Range; 43 class Range;
44 class WebString;
45 44
46 class WebRange final { 45 class WebRange final {
47 public: 46 public:
48 BLINK_EXPORT WebRange(int start, int length); 47 BLINK_EXPORT WebRange(int start, int length);
49 BLINK_EXPORT WebRange() {} 48 BLINK_EXPORT WebRange() {}
50 49
51 int startOffset() const { return m_start; } 50 int startOffset() const { return m_start; }
52 int endOffset() const { return m_end; } 51 int endOffset() const { return m_end; }
53 int length() const { return m_end - m_start; } 52 int length() const { return m_end - m_start; }
54 53
(...skipping 10 matching lines...) Expand all
65 private: 64 private:
66 // Note that this also matches the values for gfx::Range::InvalidRange 65 // Note that this also matches the values for gfx::Range::InvalidRange
67 // for easy conversion. 66 // for easy conversion.
68 int m_start = -1; 67 int m_start = -1;
69 int m_end = -1; 68 int m_end = -1;
70 }; 69 };
71 70
72 } // namespace blink 71 } // namespace blink
73 72
74 #endif 73 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebPluginContainer.h ('k') | third_party/WebKit/public/web/WebSharedWorkerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698