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

Side by Side Diff: extensions/browser/guest_view/guest_view_base.h

Issue 889873004: Move Color Picker Plumbing From WebViewGuest to GuestViewBase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | extensions/browser/guest_view/guest_view_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 void DeactivateContents(content::WebContents* contents) final; 303 void DeactivateContents(content::WebContents* contents) final;
304 void ContentsMouseEvent(content::WebContents* source, 304 void ContentsMouseEvent(content::WebContents* source,
305 const gfx::Point& location, 305 const gfx::Point& location,
306 bool motion) override; 306 bool motion) override;
307 void ContentsZoomChange(bool zoom_in) override; 307 void ContentsZoomChange(bool zoom_in) override;
308 void HandleKeyboardEvent( 308 void HandleKeyboardEvent(
309 content::WebContents* source, 309 content::WebContents* source,
310 const content::NativeWebKeyboardEvent& event) override; 310 const content::NativeWebKeyboardEvent& event) override;
311 void LoadingStateChanged(content::WebContents* source, 311 void LoadingStateChanged(content::WebContents* source,
312 bool to_different_document) final; 312 bool to_different_document) final;
313 content::ColorChooser* OpenColorChooser(
314 content::WebContents* web_contents,
315 SkColor color,
316 const std::vector<content::ColorSuggestion>& suggestions) override;
313 void RunFileChooser(content::WebContents* web_contents, 317 void RunFileChooser(content::WebContents* web_contents,
314 const content::FileChooserParams& params) override; 318 const content::FileChooserParams& params) override;
315 bool ShouldFocusPageAfterCrash() final; 319 bool ShouldFocusPageAfterCrash() final;
316 bool PreHandleGestureEvent(content::WebContents* source, 320 bool PreHandleGestureEvent(content::WebContents* source,
317 const blink::WebGestureEvent& event) final; 321 const blink::WebGestureEvent& event) final;
318 void UpdatePreferredSize(content::WebContents* web_contents, 322 void UpdatePreferredSize(content::WebContents* web_contents,
319 const gfx::Size& pref_size) final; 323 const gfx::Size& pref_size) final;
320 void UpdateTargetURL(content::WebContents* source, const GURL& url) override; 324 void UpdateTargetURL(content::WebContents* source, const GURL& url) override;
321 325
322 private: 326 private:
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 // This is used to ensure pending tasks will not fire after this object is 421 // This is used to ensure pending tasks will not fire after this object is
418 // destroyed. 422 // destroyed.
419 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; 423 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_;
420 424
421 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); 425 DISALLOW_COPY_AND_ASSIGN(GuestViewBase);
422 }; 426 };
423 427
424 } // namespace extensions 428 } // namespace extensions
425 429
426 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ 430 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | extensions/browser/guest_view/guest_view_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698