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

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

Issue 2626423003: Use DOMWindowClient for objects owned by LocalDOMWindow (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | third_party/WebKit/Source/core/frame/BarProp.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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 21 matching lines...) Expand all
32 #include "bindings/core/v8/ScriptWrappable.h" 32 #include "bindings/core/v8/ScriptWrappable.h"
33 #include "core/dom/ContextLifecycleObserver.h" 33 #include "core/dom/ContextLifecycleObserver.h"
34 #include "platform/heap/Handle.h" 34 #include "platform/heap/Handle.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 class LocalFrame; 38 class LocalFrame;
39 39
40 class BarProp final : public GarbageCollected<BarProp>, 40 class BarProp final : public GarbageCollected<BarProp>,
41 public ScriptWrappable, 41 public ScriptWrappable,
42 public ContextClient { 42 public DOMWindowClient {
43 DEFINE_WRAPPERTYPEINFO(); 43 DEFINE_WRAPPERTYPEINFO();
44 USING_GARBAGE_COLLECTED_MIXIN(BarProp); 44 USING_GARBAGE_COLLECTED_MIXIN(BarProp);
45 45
46 public: 46 public:
47 enum Type { 47 enum Type {
48 Locationbar, 48 Locationbar,
49 Menubar, 49 Menubar,
50 Personalbar, 50 Personalbar,
51 Scrollbars, 51 Scrollbars,
52 Statusbar, 52 Statusbar,
53 Toolbar 53 Toolbar
54 }; 54 };
55 55
56 static BarProp* create(LocalFrame* frame, Type type) { 56 static BarProp* create(LocalFrame* frame, Type type) {
57 return new BarProp(frame, type); 57 return new BarProp(frame, type);
58 } 58 }
59 59
60 bool visible() const; 60 bool visible() const;
61 61
62 DECLARE_VIRTUAL_TRACE(); 62 DECLARE_VIRTUAL_TRACE();
63 63
64 private: 64 private:
65 BarProp(LocalFrame*, Type); 65 BarProp(LocalFrame*, Type);
66 Type m_type; 66 Type m_type;
67 }; 67 };
68 68
69 } // namespace blink 69 } // namespace blink
70 70
71 #endif // BarProp_h 71 #endif // BarProp_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/BarProp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698