| OLD | NEW |
| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 content::WebContents* OpenURLFromTab( | 42 content::WebContents* OpenURLFromTab( |
| 43 content::WebContents* source, | 43 content::WebContents* source, |
| 44 const content::OpenURLParams& params) override; | 44 const content::OpenURLParams& params) override; |
| 45 void AddNewContents(content::WebContents* source, | 45 void AddNewContents(content::WebContents* source, |
| 46 content::WebContents* new_contents, | 46 content::WebContents* new_contents, |
| 47 WindowOpenDisposition disposition, | 47 WindowOpenDisposition disposition, |
| 48 const gfx::Rect& initial_rect, | 48 const gfx::Rect& initial_rect, |
| 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, |
| 53 bool before_unload) override; |
| 53 bool PreHandleGestureEvent(content::WebContents* source, | 54 bool PreHandleGestureEvent(content::WebContents* source, |
| 54 const blink::WebGestureEvent& event) override; | 55 const blink::WebGestureEvent& event) override; |
| 55 content::ColorChooser* OpenColorChooser( | 56 content::ColorChooser* OpenColorChooser( |
| 56 content::WebContents* web_contents, | 57 content::WebContents* web_contents, |
| 57 SkColor color, | 58 SkColor color, |
| 58 const std::vector<content::ColorSuggestion>& suggestions) override; | 59 const std::vector<content::ColorSuggestion>& suggestions) override; |
| 59 void RunFileChooser(content::RenderFrameHost* render_frame_host, | 60 void RunFileChooser(content::RenderFrameHost* render_frame_host, |
| 60 const content::FileChooserParams& params) override; | 61 const content::FileChooserParams& params) override; |
| 61 void RequestToLockMouse(content::WebContents* web_contents, | 62 void RequestToLockMouse(content::WebContents* web_contents, |
| 62 bool user_gesture, | 63 bool user_gesture, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 75 std::unique_ptr<extensions::AppWebContentsHelper> helper_; | 76 std::unique_ptr<extensions::AppWebContentsHelper> helper_; |
| 76 | 77 |
| 77 std::string extension_id_; | 78 std::string extension_id_; |
| 78 | 79 |
| 79 DISALLOW_COPY_AND_ASSIGN(CustomLauncherPageContents); | 80 DISALLOW_COPY_AND_ASSIGN(CustomLauncherPageContents); |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 } // namespace apps | 83 } // namespace apps |
| 83 | 84 |
| 84 #endif // APPS_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_ | 85 #endif // APPS_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_ |
| OLD | NEW |