WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
[patch]
WebText and Friends
apiText.diff (text/plain), 4.94 KB, created by
Yaar Schnitman
on 2009-11-09 12:33:40 PST
(
hide
)
Description:
WebText and Friends
Filename:
MIME Type:
Creator:
Yaar Schnitman
Created:
2009-11-09 12:33:40 PST
Size:
4.94 KB
patch
obsolete
>diff --git a/WebKit/chromium/ChangeLog b/WebKit/chromium/ChangeLog >index 8b7f22b..67bd3e7 100644 >--- a/WebKit/chromium/ChangeLog >+++ b/WebKit/chromium/ChangeLog >@@ -2,6 +2,19 @@ > > Reviewed by NOBODY (OOPS!). > >+ Upstreaming the Chromium WebKit API: WebText* >+ >+ https://bugs.webkit.org/show_bug.cgi?id=28394 >+ >+ * public/WebTextAffinity.h: Added. >+ (WebKit::): >+ * public/WebTextDirection.h: Added. >+ (WebKit::): >+ >+2009-11-09 Yaar Schnitman <yaar@chromium.org> >+ >+ Reviewed by NOBODY (OOPS!). >+ > Upstreaming the Chromium WebKit API: WebURL and friends. > > https://bugs.webkit.org/show_bug.cgi?id=28394 >diff --git a/WebKit/chromium/public/WebTextAffinity.h b/WebKit/chromium/public/WebTextAffinity.h >new file mode 100644 >index 0000000..1224f61 >--- /dev/null >+++ b/WebKit/chromium/public/WebTextAffinity.h >@@ -0,0 +1,44 @@ >+/* >+ * Copyright (C) 2009 Google Inc. All rights reserved. >+ * >+ * Redistribution and use in source and binary forms, with or without >+ * modification, are permitted provided that the following conditions are >+ * met: >+ * >+ * * Redistributions of source code must retain the above copyright >+ * notice, this list of conditions and the following disclaimer. >+ * * Redistributions in binary form must reproduce the above >+ * copyright notice, this list of conditions and the following disclaimer >+ * in the documentation and/or other materials provided with the >+ * distribution. >+ * * Neither the name of Google Inc. nor the names of its >+ * contributors may be used to endorse or promote products derived from >+ * this software without specific prior written permission. >+ * >+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS >+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT >+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR >+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT >+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, >+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT >+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, >+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY >+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT >+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE >+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. >+ */ >+ >+#ifndef WebTextAffinity_h >+#define WebTextAffinity_h >+ >+namespace WebKit { >+ >+// These constants specify the preferred direction of selection. >+enum WebTextAffinity { >+ WebTextAffinityUpstream, // The selection is moving toward the top of the document. >+ WebTextAffinityDownstream, // The selection is moving toward the bottom of the document. >+}; >+ >+} // namespace WebKit >+ >+#endif >diff --git a/WebKit/chromium/public/WebTextDirection.h b/WebKit/chromium/public/WebTextDirection.h >new file mode 100644 >index 0000000..3d51296 >--- /dev/null >+++ b/WebKit/chromium/public/WebTextDirection.h >@@ -0,0 +1,45 @@ >+/* >+ * Copyright (C) 2009 Google Inc. All rights reserved. >+ * >+ * Redistribution and use in source and binary forms, with or without >+ * modification, are permitted provided that the following conditions are >+ * met: >+ * >+ * * Redistributions of source code must retain the above copyright >+ * notice, this list of conditions and the following disclaimer. >+ * * Redistributions in binary form must reproduce the above >+ * copyright notice, this list of conditions and the following disclaimer >+ * in the documentation and/or other materials provided with the >+ * distribution. >+ * * Neither the name of Google Inc. nor the names of its >+ * contributors may be used to endorse or promote products derived from >+ * this software without specific prior written permission. >+ * >+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS >+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT >+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR >+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT >+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, >+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT >+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, >+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY >+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT >+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE >+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. >+ */ >+ >+#ifndef WebTextDirection_h >+#define WebTextDirection_h >+ >+namespace WebKit { >+ >+// Represents text directions (or writing directions) of a DOM node. >+enum WebTextDirection { >+ WebTextDirectionDefault, // Natural writing direction ("inherit") >+ WebTextDirectionLeftToRight, >+ WebTextDirectionRightToLeft, >+}; >+ >+} // namespace WebKit >+ >+#endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 28394
:
42764
|
42767
|
42769
|
42773
|
42775
|
42777
|
42778
|
42780
| 42781 |
42783
|
42784
|
42785
|
42787
|
42794
|
42797
|
42799
|
42801
|
42802
|
42803
|
42804
|
42805
|
42806
|
42815