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

Side by Side Diff: third_party/WebKit/Source/web/ChromeClientImpl.h

Issue 2868743002: Provide a way to obtain WebLocalFrameBase from a LocalFrame. (Closed)
Patch Set: Create WebLocalFrameBase::FromFrame 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 double LastFrameTimeMonotonic() const override; 228 double LastFrameTimeMonotonic() const override;
229 229
230 void RegisterPopupOpeningObserver(PopupOpeningObserver*) override; 230 void RegisterPopupOpeningObserver(PopupOpeningObserver*) override;
231 void UnregisterPopupOpeningObserver(PopupOpeningObserver*) override; 231 void UnregisterPopupOpeningObserver(PopupOpeningObserver*) override;
232 void NotifyPopupOpeningObservers() const override; 232 void NotifyPopupOpeningObservers() const override;
233 233
234 void InstallSupplements(LocalFrame&) override; 234 void InstallSupplements(LocalFrame&) override;
235 235
236 WebLayerTreeView* GetWebLayerTreeView(LocalFrame*) override; 236 WebLayerTreeView* GetWebLayerTreeView(LocalFrame*) override;
237 237
238 WebLocalFrameBase* GetWebLocalFrameBase(LocalFrame*) override;
239
238 private: 240 private:
239 explicit ChromeClientImpl(WebViewBase*); 241 explicit ChromeClientImpl(WebViewBase*);
240 242
241 bool IsChromeClientImpl() const override { return true; } 243 bool IsChromeClientImpl() const override { return true; }
242 244
243 void SetCursor(const WebCursorInfo&, LocalFrame*); 245 void SetCursor(const WebCursorInfo&, LocalFrame*);
244 246
245 WebViewBase* web_view_; // Weak pointer. 247 WebViewBase* web_view_; // Weak pointer.
246 WindowFeatures window_features_; 248 WindowFeatures window_features_;
247 Vector<PopupOpeningObserver*> popup_opening_observers_; 249 Vector<PopupOpeningObserver*> popup_opening_observers_;
248 Cursor last_set_mouse_cursor_for_testing_; 250 Cursor last_set_mouse_cursor_for_testing_;
249 bool cursor_overridden_; 251 bool cursor_overridden_;
250 bool did_request_non_empty_tool_tip_; 252 bool did_request_non_empty_tool_tip_;
251 }; 253 };
252 254
253 DEFINE_TYPE_CASTS(ChromeClientImpl, 255 DEFINE_TYPE_CASTS(ChromeClientImpl,
254 ChromeClient, 256 ChromeClient,
255 client, 257 client,
256 client->IsChromeClientImpl(), 258 client->IsChromeClientImpl(),
257 client.IsChromeClientImpl()); 259 client.IsChromeClientImpl());
258 260
259 } // namespace blink 261 } // namespace blink
260 262
261 #endif 263 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/ChromeClient.h ('k') | third_party/WebKit/Source/web/ChromeClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698