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

Side by Side Diff: Source/core/page/Chrome.h

Issue 22955006: Chrome::client() should return a ChromeClient reference. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * Copyright (C) 2012, Samsung Electronics. All rights reserved. 4 * Copyright (C) 2012, Samsung Electronics. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 struct DateTimeChooserParameters; 51 struct DateTimeChooserParameters;
52 struct ViewportArguments; 52 struct ViewportArguments;
53 struct WindowFeatures; 53 struct WindowFeatures;
54 54
55 class Chrome : public HostWindow { 55 class Chrome : public HostWindow {
56 public: 56 public:
57 ~Chrome(); 57 ~Chrome();
58 58
59 static PassOwnPtr<Chrome> create(Page*, ChromeClient*); 59 static PassOwnPtr<Chrome> create(Page*, ChromeClient*);
60 60
61 ChromeClient* client() { return m_client; } 61 ChromeClient& client() { return *m_client; }
62 62
63 // HostWindow methods. 63 // HostWindow methods.
64 virtual void invalidateContentsAndRootView(const IntRect&) OVERRIDE; 64 virtual void invalidateContentsAndRootView(const IntRect&) OVERRIDE;
65 virtual void invalidateContentsForSlowScroll(const IntRect&) OVERRIDE; 65 virtual void invalidateContentsForSlowScroll(const IntRect&) OVERRIDE;
66 virtual void scroll(const IntSize&, const IntRect&, const IntRect&) OVERRIDE ; 66 virtual void scroll(const IntSize&, const IntRect&, const IntRect&) OVERRIDE ;
67 virtual IntPoint screenToRootView(const IntPoint&) const OVERRIDE; 67 virtual IntPoint screenToRootView(const IntPoint&) const OVERRIDE;
68 virtual IntRect rootViewToScreen(const IntRect&) const OVERRIDE; 68 virtual IntRect rootViewToScreen(const IntRect&) const OVERRIDE;
69 virtual WebKit::WebScreenInfo screenInfo() const OVERRIDE; 69 virtual WebKit::WebScreenInfo screenInfo() const OVERRIDE;
70 virtual void setCursor(const Cursor&) OVERRIDE; 70 virtual void setCursor(const Cursor&) OVERRIDE;
71 71
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 void notifyPopupOpeningObservers() const; 137 void notifyPopupOpeningObservers() const;
138 138
139 Page* m_page; 139 Page* m_page;
140 ChromeClient* m_client; 140 ChromeClient* m_client;
141 Vector<PopupOpeningObserver*> m_popupOpeningObservers; 141 Vector<PopupOpeningObserver*> m_popupOpeningObservers;
142 }; 142 };
143 143
144 } 144 }
145 145
146 #endif // Chrome_h 146 #endif // Chrome_h
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