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

Side by Side Diff: chrome/browser/background/background_contents.h

Issue 2194243002: Suppress JavaScript dialogs when a tab puts itself into fullscreen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: switch fullscreen call Created 4 years, 4 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 | « apps/custom_launcher_page_contents.cc ('k') | chrome/browser/background/background_contents.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_H_
6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_H_ 6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 ~BackgroundContents() override; 66 ~BackgroundContents() override;
67 67
68 content::WebContents* web_contents() const { return web_contents_.get(); } 68 content::WebContents* web_contents() const { return web_contents_.get(); }
69 virtual const GURL& GetURL() const; 69 virtual const GURL& GetURL() const;
70 70
71 // Adds this BackgroundContents to the queue of RenderViews to create. 71 // Adds this BackgroundContents to the queue of RenderViews to create.
72 void CreateRenderViewSoon(const GURL& url); 72 void CreateRenderViewSoon(const GURL& url);
73 73
74 // content::WebContentsDelegate implementation: 74 // content::WebContentsDelegate implementation:
75 void CloseContents(content::WebContents* source) override; 75 void CloseContents(content::WebContents* source) override;
76 bool ShouldSuppressDialogs(content::WebContents* source) override; 76 bool ShouldSuppressDialogs(content::WebContents* source,
77 bool before_unload) override;
77 void DidNavigateMainFramePostCommit(content::WebContents* tab) override; 78 void DidNavigateMainFramePostCommit(content::WebContents* tab) override;
78 void AddNewContents(content::WebContents* source, 79 void AddNewContents(content::WebContents* source,
79 content::WebContents* new_contents, 80 content::WebContents* new_contents,
80 WindowOpenDisposition disposition, 81 WindowOpenDisposition disposition,
81 const gfx::Rect& initial_rect, 82 const gfx::Rect& initial_rect,
82 bool user_gesture, 83 bool user_gesture,
83 bool* was_blocked) override; 84 bool* was_blocked) override;
84 bool IsNeverVisible(content::WebContents* web_contents) override; 85 bool IsNeverVisible(content::WebContents* web_contents) override;
85 86
86 // content::WebContentsObserver implementation: 87 // content::WebContentsObserver implementation:
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 BackgroundContents* contents; 130 BackgroundContents* contents;
130 131
131 // The name of the parent frame for these contents. 132 // The name of the parent frame for these contents.
132 const std::string& frame_name; 133 const std::string& frame_name;
133 134
134 // The ID of the parent application (if any). 135 // The ID of the parent application (if any).
135 const base::string16& application_id; 136 const base::string16& application_id;
136 }; 137 };
137 138
138 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_H_ 139 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_H_
OLDNEW
« no previous file with comments | « apps/custom_launcher_page_contents.cc ('k') | chrome/browser/background/background_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698