BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / ui / blocked_content / app_modal_dialog_helper.h
blobc085d9f98d56ef2e2a4ca67f8ba64e071224db6a
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_BLOCKED_CONTENT_APP_MODAL_DIALOG_HELPER_H_
6 #define CHROME_BROWSER_UI_BLOCKED_CONTENT_APP_MODAL_DIALOG_HELPER_H_
8 #include "base/macros.h"
9 #include "content/public/browser/web_contents_observer.h"
11 // A helper for app modal dialogs that blocks creation of pop-unders.
12 class AppModalDialogHelper : public content::WebContentsObserver {
13 public:
14 explicit AppModalDialogHelper(content::WebContents* dialog_host);
15 ~AppModalDialogHelper() override;
17 private:
18 // Overridden from WebContentsObserver:
19 void WebContentsDestroyed() override;
21 content::WebContents* popup_;
23 DISALLOW_COPY_AND_ASSIGN(AppModalDialogHelper);
26 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_APP_MODAL_DIALOG_HELPER_H_