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

Side by Side Diff: headless/public/web_element.h

Issue 1461693003: [headless] Initial skeleton of headless/public/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pure virtual indeed Created 5 years, 1 month 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef HEADLESS_PUBLIC_WEB_ELEMENT_H_
6 #define HEADLESS_PUBLIC_WEB_ELEMENT_H_
7
8 #include <map>
9
10 #include "base/memory/scoped_ptr.h"
11 #include "headless/public/headless_export.h"
12 #include "headless/public/web_node.h"
13
14 namespace blink {
15 class WebElement;
16 }
17
18 namespace gfx {
19 class Rect;
20 }
21
22 namespace headless {
23
24 class HEADLESS_EXPORT WebElement : public WebNode {
25 public:
26 WebElement(const blink::WebElement& web_element);
alex clarke (OOO till 29th) 2015/11/19 18:17:54 nit: explicit for both of these
altimin 2015/11/19 18:36:24 Done.
27 WebElement(const WebElement& web_element);
28 ~WebElement();
29
30 std::string TagName() const;
31 gfx::Rect BoundingBox() const;
32 const std::map<std::string, std::string>& Attributes() const;
33
34 protected:
35 blink::WebElement& web_element();
36 const blink::WebElement& web_element() const;
37
38 private:
39 mutable scoped_ptr<std::map<std::string, std::string>> attributes_;
40 };
41
42 } // namespace headless
43
44 #endif // HEADLESS_PUBLIC_WEB_ELEMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698