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

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

Issue 2943983003: chrome/blink: Add functionality for in-product help for media elements. (Closed)
Patch Set: Created 3 years, 6 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 void RegisterPopupOpeningObserver(PopupOpeningObserver*) override; 225 void RegisterPopupOpeningObserver(PopupOpeningObserver*) override;
226 void UnregisterPopupOpeningObserver(PopupOpeningObserver*) override; 226 void UnregisterPopupOpeningObserver(PopupOpeningObserver*) override;
227 void NotifyPopupOpeningObservers() const override; 227 void NotifyPopupOpeningObservers() const override;
228 228
229 WebLayerTreeView* GetWebLayerTreeView(LocalFrame*) override; 229 WebLayerTreeView* GetWebLayerTreeView(LocalFrame*) override;
230 230
231 WebLocalFrameBase* GetWebLocalFrameBase(LocalFrame*) override; 231 WebLocalFrameBase* GetWebLocalFrameBase(LocalFrame*) override;
232 232
233 WebRemoteFrameBase* GetWebRemoteFrameBase(RemoteFrame&) override; 233 WebRemoteFrameBase* GetWebRemoteFrameBase(RemoteFrame&) override;
234 234
235 std::unique_ptr<WebMediaIPH> CreateWebMediaIPH(LocalFrame*) override;
236
235 void RequestDecode( 237 void RequestDecode(
236 LocalFrame*, 238 LocalFrame*,
237 const PaintImage&, 239 const PaintImage&,
238 std::unique_ptr<WTF::Function<void(bool)>> callback) override; 240 std::unique_ptr<WTF::Function<void(bool)>> callback) override;
239 241
240 private: 242 private:
241 explicit ChromeClientImpl(WebViewBase*); 243 explicit ChromeClientImpl(WebViewBase*);
242 244
243 bool IsChromeClientImpl() const override { return true; } 245 bool IsChromeClientImpl() const override { return true; }
244 246
245 void SetCursor(const WebCursorInfo&, LocalFrame*); 247 void SetCursor(const WebCursorInfo&, LocalFrame*);
246 248
247 WebViewBase* web_view_; // Weak pointer. 249 WebViewBase* web_view_; // Weak pointer.
248 Vector<PopupOpeningObserver*> popup_opening_observers_; 250 Vector<PopupOpeningObserver*> popup_opening_observers_;
249 Cursor last_set_mouse_cursor_for_testing_; 251 Cursor last_set_mouse_cursor_for_testing_;
250 bool cursor_overridden_; 252 bool cursor_overridden_;
251 bool did_request_non_empty_tool_tip_; 253 bool did_request_non_empty_tool_tip_;
252 }; 254 };
253 255
254 DEFINE_TYPE_CASTS(ChromeClientImpl, 256 DEFINE_TYPE_CASTS(ChromeClientImpl,
255 ChromeClient, 257 ChromeClient,
256 client, 258 client,
257 client->IsChromeClientImpl(), 259 client->IsChromeClientImpl(),
258 client.IsChromeClientImpl()); 260 client.IsChromeClientImpl());
259 261
260 } // namespace blink 262 } // namespace blink
261 263
262 #endif 264 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698