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

Side by Side Diff: Source/core/frame/BarProp.cpp

Issue 552733003: Oilpan: make DOMWindowProperty a GC mixin. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Pacify GC plugin wrt LocalDOMWindow::trace() Created 6 years, 3 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) 2007, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2010 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 23 matching lines...) Expand all
34 #include "core/frame/LocalFrame.h" 34 #include "core/frame/LocalFrame.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 BarProp::BarProp(LocalFrame* frame, Type type) 38 BarProp::BarProp(LocalFrame* frame, Type type)
39 : DOMWindowProperty(frame) 39 : DOMWindowProperty(frame)
40 , m_type(type) 40 , m_type(type)
41 { 41 {
42 } 42 }
43 43
44 void BarProp::trace(Visitor* visitor)
45 {
46 DOMWindowProperty::trace(visitor);
47 }
48
44 bool BarProp::visible() const 49 bool BarProp::visible() const
45 { 50 {
46 if (!m_frame) 51 if (!m_frame)
47 return false; 52 return false;
48 FrameHost* host = m_frame->host(); 53 FrameHost* host = m_frame->host();
49 if (!host) 54 if (!host)
50 return false; 55 return false;
51 56
52 switch (m_type) { 57 switch (m_type) {
53 case Locationbar: 58 case Locationbar:
54 case Personalbar: 59 case Personalbar:
55 case Toolbar: 60 case Toolbar:
56 return host->chrome().toolbarsVisible(); 61 return host->chrome().toolbarsVisible();
57 case Menubar: 62 case Menubar:
58 return host->chrome().menubarVisible(); 63 return host->chrome().menubarVisible();
59 case Scrollbars: 64 case Scrollbars:
60 return host->chrome().scrollbarsVisible(); 65 return host->chrome().scrollbarsVisible();
61 case Statusbar: 66 case Statusbar:
62 return host->chrome().statusbarVisible(); 67 return host->chrome().statusbarVisible();
63 } 68 }
64 69
65 ASSERT_NOT_REACHED(); 70 ASSERT_NOT_REACHED();
66 return false; 71 return false;
67 } 72 }
68 73
69 } // namespace blink 74 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698