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

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

Issue 1083093004: Removing unnecessary blink::prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: trybot fixing Created 5 years, 8 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
« no previous file with comments | « Source/web/WebEmbeddedWorkerImpl.cpp ('k') | Source/web/painting/PaintAggregator.h » ('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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 #include "public/web/WebNodeList.h" 57 #include "public/web/WebNodeList.h"
58 #include "public/web/WebPluginContainer.h" 58 #include "public/web/WebPluginContainer.h"
59 #include "web/FrameLoaderClientImpl.h" 59 #include "web/FrameLoaderClientImpl.h"
60 #include "web/WebLocalFrameImpl.h" 60 #include "web/WebLocalFrameImpl.h"
61 #include "web/WebPluginContainerImpl.h" 61 #include "web/WebPluginContainerImpl.h"
62 62
63 namespace blink { 63 namespace blink {
64 64
65 namespace { 65 namespace {
66 66
67 class NodeDispatchEventTask: public blink::SuspendableTask { 67 class NodeDispatchEventTask: public SuspendableTask {
68 WTF_MAKE_NONCOPYABLE(NodeDispatchEventTask); 68 WTF_MAKE_NONCOPYABLE(NodeDispatchEventTask);
69 public: 69 public:
70 NodeDispatchEventTask(const WebPrivatePtr<Node>& node, WebDOMEvent event) 70 NodeDispatchEventTask(const WebPrivatePtr<Node>& node, WebDOMEvent event)
71 : m_event(event) 71 : m_event(event)
72 { 72 {
73 m_node = node; 73 m_node = node;
74 } 74 }
75 75
76 ~NodeDispatchEventTask() 76 ~NodeDispatchEventTask()
77 { 77 {
78 m_node.reset(); 78 m_node.reset();
79 } 79 }
80 80
81 void run() override 81 void run() override
82 { 82 {
83 m_node->dispatchEvent(m_event); 83 m_node->dispatchEvent(m_event);
84 } 84 }
85 private: 85 private:
86 WebPrivatePtr<Node> m_node; 86 WebPrivatePtr<Node> m_node;
87 WebDOMEvent m_event; 87 WebDOMEvent m_event;
88 }; 88 };
89 89
90 class NodeDispatchSimulatedClickTask: public blink::SuspendableTask { 90 class NodeDispatchSimulatedClickTask: public SuspendableTask {
91 WTF_MAKE_NONCOPYABLE(NodeDispatchSimulatedClickTask); 91 WTF_MAKE_NONCOPYABLE(NodeDispatchSimulatedClickTask);
92 public: 92 public:
93 NodeDispatchSimulatedClickTask(const WebPrivatePtr<Node>& node) 93 NodeDispatchSimulatedClickTask(const WebPrivatePtr<Node>& node)
94 { 94 {
95 m_node = node; 95 m_node = node;
96 } 96 }
97 97
98 ~NodeDispatchSimulatedClickTask() 98 ~NodeDispatchSimulatedClickTask()
99 { 99 {
100 m_node.reset(); 100 m_node.reset();
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 m_private = node; 323 m_private = node;
324 return *this; 324 return *this;
325 } 325 }
326 326
327 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const 327 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const
328 { 328 {
329 return m_private.get(); 329 return m_private.get();
330 } 330 }
331 331
332 } // namespace blink 332 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebEmbeddedWorkerImpl.cpp ('k') | Source/web/painting/PaintAggregator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698