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

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

Issue 470883002: Add |WebTextDirection toWebTextDirection(TextDirection)|. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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 | « Source/web/ValidationMessageClientImpl.cpp ('k') | Source/web/WebPopupMenuImpl.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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 return m_private.get() < other.m_private.get(); 58 return m_private.get() < other.m_private.get();
59 } 59 }
60 60
61 WebString WebNotification::title() const 61 WebString WebNotification::title() const
62 { 62 {
63 return m_private->title(); 63 return m_private->title();
64 } 64 }
65 65
66 WebTextDirection WebNotification::direction() const 66 WebTextDirection WebNotification::direction() const
67 { 67 {
68 return (m_private->direction() == RTL) ? 68 return toWebTextDirection(m_private->direction());
69 WebTextDirectionRightToLeft :
70 WebTextDirectionLeftToRight;
71 } 69 }
72 70
73 WebString WebNotification::lang() const 71 WebString WebNotification::lang() const
74 { 72 {
75 return m_private->lang(); 73 return m_private->lang();
76 } 74 }
77 75
78 WebString WebNotification::body() const 76 WebString WebNotification::body() const
79 { 77 {
80 return m_private->body(); 78 return m_private->body();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 { 115 {
118 } 116 }
119 117
120 WebNotification& WebNotification::operator=(Notification* notification) 118 WebNotification& WebNotification::operator=(Notification* notification)
121 { 119 {
122 m_private = notification; 120 m_private = notification;
123 return *this; 121 return *this;
124 } 122 }
125 123
126 } // namespace blink 124 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/ValidationMessageClientImpl.cpp ('k') | Source/web/WebPopupMenuImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698