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

Side by Side Diff: third_party/WebKit/Source/core/frame/Navigator.h

Issue 2886943007: Introduce NavigatorWebDriver interface
Patch Set: wip: need more tests Created 3 years, 7 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
OLDNEW
1 /* 1 /*
2 Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 2 Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
3 3
4 This library is free software; you can redistribute it and/or 4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public 5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either 6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version. 7 version 2 of the License, or (at your option) any later version.
8 8
9 This library is distributed in the hope that it will be useful, 9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 public Supplementable<Navigator> { 45 public Supplementable<Navigator> {
46 DEFINE_WRAPPERTYPEINFO(); 46 DEFINE_WRAPPERTYPEINFO();
47 USING_GARBAGE_COLLECTED_MIXIN(Navigator); 47 USING_GARBAGE_COLLECTED_MIXIN(Navigator);
48 48
49 public: 49 public:
50 static Navigator* Create(LocalFrame* frame) { return new Navigator(frame); } 50 static Navigator* Create(LocalFrame* frame) { return new Navigator(frame); }
51 51
52 // NavigatorCookies 52 // NavigatorCookies
53 bool cookieEnabled() const; 53 bool cookieEnabled() const;
54 54
55 bool webdriver() const;
56
55 String productSub() const; 57 String productSub() const;
56 String vendor() const; 58 String vendor() const;
57 String vendorSub() const; 59 String vendorSub() const;
58 60
59 String userAgent() const override; 61 String userAgent() const override;
60 62
61 // NavigatorLanguage 63 // NavigatorLanguage
62 Vector<String> languages() override; 64 Vector<String> languages() override;
63 65
64 DECLARE_VIRTUAL_TRACE(); 66 DECLARE_VIRTUAL_TRACE();
65 67
66 private: 68 private:
67 explicit Navigator(LocalFrame*); 69 explicit Navigator(LocalFrame*);
68 }; 70 };
69 71
70 } // namespace blink 72 } // namespace blink
71 73
72 #endif // Navigator_h 74 #endif // Navigator_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core_idl_files.gni ('k') | third_party/WebKit/Source/core/frame/Navigator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698