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

Side by Side Diff: apps/custom_launcher_page_contents.h

Issue 2059533002: Change WebContentsDelegate::RunFileChooser to be frame based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes based on reviews. Created 4 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 // 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 APPS_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_ 5 #ifndef APPS_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_
6 #define APPS_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_ 6 #define APPS_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "content/public/browser/web_contents_delegate.h" 10 #include "content/public/browser/web_contents_delegate.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 bool user_gesture, 49 bool user_gesture,
50 bool* was_blocked) override; 50 bool* was_blocked) override;
51 bool IsPopupOrPanel(const content::WebContents* source) const override; 51 bool IsPopupOrPanel(const content::WebContents* source) const override;
52 bool ShouldSuppressDialogs(content::WebContents* source) override; 52 bool ShouldSuppressDialogs(content::WebContents* source) override;
53 bool PreHandleGestureEvent(content::WebContents* source, 53 bool PreHandleGestureEvent(content::WebContents* source,
54 const blink::WebGestureEvent& event) override; 54 const blink::WebGestureEvent& event) override;
55 content::ColorChooser* OpenColorChooser( 55 content::ColorChooser* OpenColorChooser(
56 content::WebContents* web_contents, 56 content::WebContents* web_contents,
57 SkColor color, 57 SkColor color,
58 const std::vector<content::ColorSuggestion>& suggestions) override; 58 const std::vector<content::ColorSuggestion>& suggestions) override;
59 void RunFileChooser(content::WebContents* tab, 59 void RunFileChooser(content::RenderFrameHost* render_frame_host,
60 const content::FileChooserParams& params) override; 60 const content::FileChooserParams& params) override;
61 void RequestToLockMouse(content::WebContents* web_contents, 61 void RequestToLockMouse(content::WebContents* web_contents,
62 bool user_gesture, 62 bool user_gesture,
63 bool last_unlocked_by_target) override; 63 bool last_unlocked_by_target) override;
64 void RequestMediaAccessPermission( 64 void RequestMediaAccessPermission(
65 content::WebContents* web_contents, 65 content::WebContents* web_contents,
66 const content::MediaStreamRequest& request, 66 const content::MediaStreamRequest& request,
67 const content::MediaResponseCallback& callback) override; 67 const content::MediaResponseCallback& callback) override;
68 bool CheckMediaAccessPermission(content::WebContents* web_contents, 68 bool CheckMediaAccessPermission(content::WebContents* web_contents,
69 const GURL& security_origin, 69 const GURL& security_origin,
70 content::MediaStreamType type) override; 70 content::MediaStreamType type) override;
71 71
72 private: 72 private:
73 std::unique_ptr<content::WebContents> web_contents_; 73 std::unique_ptr<content::WebContents> web_contents_;
74 std::unique_ptr<extensions::AppDelegate> app_delegate_; 74 std::unique_ptr<extensions::AppDelegate> app_delegate_;
75 std::unique_ptr<extensions::AppWebContentsHelper> helper_; 75 std::unique_ptr<extensions::AppWebContentsHelper> helper_;
76 76
77 std::string extension_id_; 77 std::string extension_id_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(CustomLauncherPageContents); 79 DISALLOW_COPY_AND_ASSIGN(CustomLauncherPageContents);
80 }; 80 };
81 81
82 } // namespace apps 82 } // namespace apps
83 83
84 #endif // APPS_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_ 84 #endif // APPS_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_
OLDNEW
« no previous file with comments | « android_webview/native/aw_web_contents_delegate.cc ('k') | apps/custom_launcher_page_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698