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

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

Issue 2769823002: Add decode() functionality to image elements. (Closed)
Patch Set: rebase 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 void NotifyPopupOpeningObservers() const override; 233 void NotifyPopupOpeningObservers() const override;
234 234
235 void InstallSupplements(LocalFrame&) override; 235 void InstallSupplements(LocalFrame&) override;
236 236
237 WebLayerTreeView* GetWebLayerTreeView(LocalFrame*) override; 237 WebLayerTreeView* GetWebLayerTreeView(LocalFrame*) override;
238 238
239 WebLocalFrameBase* GetWebLocalFrameBase(LocalFrame*) override; 239 WebLocalFrameBase* GetWebLocalFrameBase(LocalFrame*) override;
240 240
241 WebRemoteFrameBase* GetWebRemoteFrameBase(RemoteFrame&) override; 241 WebRemoteFrameBase* GetWebRemoteFrameBase(RemoteFrame&) override;
242 242
243 void RequestDecode(
244 LocalFrame*,
245 sk_sp<SkImage>,
246 std::unique_ptr<WTF::Function<void(bool)>> callback) override;
247
243 private: 248 private:
244 explicit ChromeClientImpl(WebViewBase*); 249 explicit ChromeClientImpl(WebViewBase*);
245 250
246 bool IsChromeClientImpl() const override { return true; } 251 bool IsChromeClientImpl() const override { return true; }
247 252
248 void SetCursor(const WebCursorInfo&, LocalFrame*); 253 void SetCursor(const WebCursorInfo&, LocalFrame*);
249 254
250 WebViewBase* web_view_; // Weak pointer. 255 WebViewBase* web_view_; // Weak pointer.
251 WindowFeatures window_features_; 256 WindowFeatures window_features_;
252 Vector<PopupOpeningObserver*> popup_opening_observers_; 257 Vector<PopupOpeningObserver*> popup_opening_observers_;
253 Cursor last_set_mouse_cursor_for_testing_; 258 Cursor last_set_mouse_cursor_for_testing_;
254 bool cursor_overridden_; 259 bool cursor_overridden_;
255 bool did_request_non_empty_tool_tip_; 260 bool did_request_non_empty_tool_tip_;
256 }; 261 };
257 262
258 DEFINE_TYPE_CASTS(ChromeClientImpl, 263 DEFINE_TYPE_CASTS(ChromeClientImpl,
259 ChromeClient, 264 ChromeClient,
260 client, 265 client,
261 client->IsChromeClientImpl(), 266 client->IsChromeClientImpl(),
262 client.IsChromeClientImpl()); 267 client.IsChromeClientImpl());
263 268
264 } // namespace blink 269 } // namespace blink
265 270
266 #endif 271 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5 ('k') | third_party/WebKit/Source/web/ChromeClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698