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

Side by Side Diff: chrome/common/render_messages.h

Issue 19486: Lint cleanup. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_
6 #define CHROME_COMMON_RENDER_MESSAGES_H_ 6 #define CHROME_COMMON_RENDER_MESSAGES_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include <map> 10 #include <map>
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 static bool Read(const Message* m, void** iter, param_type* p) { 551 static bool Read(const Message* m, void** iter, param_type* p) {
552 int type; 552 int type;
553 if (!m->ReadInt(iter, &type)) 553 if (!m->ReadInt(iter, &type))
554 return false; 554 return false;
555 *p = ContextNode(type); 555 *p = ContextNode(type);
556 return true; 556 return true;
557 } 557 }
558 static void Log(const param_type& p, std::wstring* l) { 558 static void Log(const param_type& p, std::wstring* l) {
559 std::wstring event = L""; 559 std::wstring event = L"";
560 560
561 if (!p.type) 561 if (!p.type) {
562 event.append(L"NONE"); 562 event.append(L"NONE");
563 else { 563 } else {
564 event.append(L"("); 564 event.append(L"(");
565 if (p.type & ContextNode::PAGE) 565 if (p.type & ContextNode::PAGE)
566 event.append(L"PAGE|"); 566 event.append(L"PAGE|");
567 if (p.type & ContextNode::FRAME) 567 if (p.type & ContextNode::FRAME)
568 event.append(L"FRAME|"); 568 event.append(L"FRAME|");
569 if (p.type & ContextNode::LINK) 569 if (p.type & ContextNode::LINK)
570 event.append(L"LINK|"); 570 event.append(L"LINK|");
571 if (p.type & ContextNode::IMAGE) 571 if (p.type & ContextNode::IMAGE)
572 event.append(L"IMAGE|"); 572 event.append(L"IMAGE|");
573 if (p.type & ContextNode::SELECTION) 573 if (p.type & ContextNode::SELECTION)
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1734 #endif 1734 #endif
1735 1735
1736 static void Log(const param_type& p, std::wstring* l) { 1736 static void Log(const param_type& p, std::wstring* l) {
1737 l->append(L"<ModalDialogEvent>"); 1737 l->append(L"<ModalDialogEvent>");
1738 } 1738 }
1739 }; 1739 };
1740 1740
1741 } // namespace IPC 1741 } // namespace IPC
1742 1742
1743 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 1743 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698