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

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

Issue 15820002: Page::chrome() should return a reference. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/loader/FrameLoader.cpp ('k') | Source/core/page/Chrome.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, 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 if (!m_frame) 52 if (!m_frame)
53 return false; 53 return false;
54 Page* page = m_frame->page(); 54 Page* page = m_frame->page();
55 if (!page) 55 if (!page)
56 return false; 56 return false;
57 57
58 switch (m_type) { 58 switch (m_type) {
59 case Locationbar: 59 case Locationbar:
60 case Personalbar: 60 case Personalbar:
61 case Toolbar: 61 case Toolbar:
62 return page->chrome()->toolbarsVisible(); 62 return page->chrome().toolbarsVisible();
63 case Menubar: 63 case Menubar:
64 return page->chrome()->menubarVisible(); 64 return page->chrome().menubarVisible();
65 case Scrollbars: 65 case Scrollbars:
66 return page->chrome()->scrollbarsVisible(); 66 return page->chrome().scrollbarsVisible();
67 case Statusbar: 67 case Statusbar:
68 return page->chrome()->statusbarVisible(); 68 return page->chrome().statusbarVisible();
69 } 69 }
70 70
71 ASSERT_NOT_REACHED(); 71 ASSERT_NOT_REACHED();
72 return false; 72 return false;
73 } 73 }
74 74
75 } // namespace WebCore 75 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/loader/FrameLoader.cpp ('k') | Source/core/page/Chrome.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698