OLD | NEW |
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 #include "core/rendering/style/RenderStyle.h" | 48 #include "core/rendering/style/RenderStyle.h" |
49 #include "platform/PlatformKeyboardEvent.h" | 49 #include "platform/PlatformKeyboardEvent.h" |
50 #include "public/platform/WebPoint.h" | 50 #include "public/platform/WebPoint.h" |
51 #include "public/platform/WebRect.h" | 51 #include "public/platform/WebRect.h" |
52 #include "public/platform/WebString.h" | 52 #include "public/platform/WebString.h" |
53 #include "public/platform/WebURL.h" | 53 #include "public/platform/WebURL.h" |
54 #include "wtf/text/StringBuilder.h" | 54 #include "wtf/text/StringBuilder.h" |
55 | 55 |
56 using namespace WebCore; | 56 using namespace WebCore; |
57 | 57 |
58 namespace WebKit { | 58 namespace blink { |
59 | 59 |
60 void WebAXObject::reset() | 60 void WebAXObject::reset() |
61 { | 61 { |
62 m_private.reset(); | 62 m_private.reset(); |
63 } | 63 } |
64 | 64 |
65 void WebAXObject::assign(const WebKit::WebAXObject& other) | 65 void WebAXObject::assign(const blink::WebAXObject& other) |
66 { | 66 { |
67 m_private = other.m_private; | 67 m_private = other.m_private; |
68 } | 68 } |
69 | 69 |
70 bool WebAXObject::equals(const WebAXObject& n) const | 70 bool WebAXObject::equals(const WebAXObject& n) const |
71 { | 71 { |
72 return m_private.get() == n.m_private.get(); | 72 return m_private.get() == n.m_private.get(); |
73 } | 73 } |
74 | 74 |
75 // static | 75 // static |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 { | 601 { |
602 if (isDetached()) | 602 if (isDetached()) |
603 return false; | 603 return false; |
604 | 604 |
605 return m_private->press(); | 605 return m_private->press(); |
606 } | 606 } |
607 | 607 |
608 WebAXRole WebAXObject::role() const | 608 WebAXRole WebAXObject::role() const |
609 { | 609 { |
610 if (isDetached()) | 610 if (isDetached()) |
611 return WebKit::WebAXRoleUnknown; | 611 return blink::WebAXRoleUnknown; |
612 | 612 |
613 return static_cast<WebAXRole>(m_private->roleValue()); | 613 return static_cast<WebAXRole>(m_private->roleValue()); |
614 } | 614 } |
615 | 615 |
616 unsigned WebAXObject::selectionEnd() const | 616 unsigned WebAXObject::selectionEnd() const |
617 { | 617 { |
618 if (isDetached()) | 618 if (isDetached()) |
619 return 0; | 619 return 0; |
620 | 620 |
621 return m_private->selectedTextRange().start + m_private->selectedTextRange()
.length; | 621 return m_private->selectedTextRange().start + m_private->selectedTextRange()
.length; |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1066 { | 1066 { |
1067 m_private = object; | 1067 m_private = object; |
1068 return *this; | 1068 return *this; |
1069 } | 1069 } |
1070 | 1070 |
1071 WebAXObject::operator WTF::PassRefPtr<WebCore::AXObject>() const | 1071 WebAXObject::operator WTF::PassRefPtr<WebCore::AXObject>() const |
1072 { | 1072 { |
1073 return m_private.get(); | 1073 return m_private.get(); |
1074 } | 1074 } |
1075 | 1075 |
1076 } // namespace WebKit | 1076 } // namespace blink |
OLD | NEW |