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

Side by Side Diff: Source/web/WebNotification.cpp

Issue 398673003: Rename WebCore namespace to blink in bindings and web (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | « Source/web/WebNodeTest.cpp ('k') | Source/web/WebOptionElement.cpp » ('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) 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "public/web/WebNotification.h" 32 #include "public/web/WebNotification.h"
33 33
34 #include "core/events/Event.h" 34 #include "core/events/Event.h"
35 #include "modules/notifications/Notification.h" 35 #include "modules/notifications/Notification.h"
36 #include "public/platform/WebURL.h" 36 #include "public/platform/WebURL.h"
37 #include "wtf/PassRefPtr.h" 37 #include "wtf/PassRefPtr.h"
38 38
39 using WebCore::Notification; 39 using blink::Notification;
40 40
41 namespace blink { 41 namespace blink {
42 42
43 void WebNotification::reset() 43 void WebNotification::reset()
44 { 44 {
45 m_private.reset(); 45 m_private.reset();
46 } 46 }
47 47
48 void WebNotification::assign(const WebNotification& other) 48 void WebNotification::assign(const WebNotification& other)
49 { 49 {
(...skipping 10 matching lines...) Expand all
60 return m_private.get() < other.m_private.get(); 60 return m_private.get() < other.m_private.get();
61 } 61 }
62 62
63 WebString WebNotification::title() const 63 WebString WebNotification::title() const
64 { 64 {
65 return m_private->title(); 65 return m_private->title();
66 } 66 }
67 67
68 WebTextDirection WebNotification::direction() const 68 WebTextDirection WebNotification::direction() const
69 { 69 {
70 return (m_private->direction() == WebCore::RTL) ? 70 return (m_private->direction() == blink::RTL) ?
71 WebTextDirectionRightToLeft : 71 WebTextDirectionRightToLeft :
72 WebTextDirectionLeftToRight; 72 WebTextDirectionLeftToRight;
73 } 73 }
74 74
75 WebString WebNotification::lang() const 75 WebString WebNotification::lang() const
76 { 76 {
77 return m_private->lang(); 77 return m_private->lang();
78 } 78 }
79 79
80 WebString WebNotification::body() const 80 WebString WebNotification::body() const
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 { 119 {
120 } 120 }
121 121
122 WebNotification& WebNotification::operator=(Notification* notification) 122 WebNotification& WebNotification::operator=(Notification* notification)
123 { 123 {
124 m_private = notification; 124 m_private = notification;
125 return *this; 125 return *this;
126 } 126 }
127 127
128 } // namespace blink 128 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebNodeTest.cpp ('k') | Source/web/WebOptionElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698