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

Side by Side Diff: components/constrained_window/constrained_window_views_client.h

Issue 699553002: MacViews: Add a CreateChromeConstrainedWindowViewsClient stub (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: don't forget gn Created 6 years, 1 month 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 COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_CLIENT_H_ 5 #ifndef COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_CLIENT_H_
6 #define COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_CLIENT_H_ 6 #define COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_CLIENT_H_
7 7
8 #include "ui/gfx/native_widget_types.h" 8 #include "ui/gfx/native_widget_types.h"
9 9
10 namespace content { 10 namespace content {
11 class WebContents; 11 class WebContents;
12 } 12 }
13 13
14 namespace web_modal { 14 namespace web_modal {
15 class ModalDialogHost; 15 class ModalDialogHost;
16 } 16 }
17 17
18 class ConstrainedWindowViewsClient { 18 class ConstrainedWindowViewsClient {
19 public: 19 public:
20 virtual ~ConstrainedWindowViewsClient() {} 20 virtual ~ConstrainedWindowViewsClient() {}
21 21
22 // Returns the web contents that a constrained window should be modal to 22 // Returns the web contents that a constrained window should be modal to
23 // in the embedder's context. 23 // in the embedder's context.
24 virtual content::WebContents* GetEmbedderWebContents( 24 virtual content::WebContents* GetEmbedderWebContents(
25 content::WebContents* initiator_web_contents) = 0; 25 content::WebContents* initiator_web_contents) = 0;
26 26
27 // Returns the modal window host for the |parent| native window. 27 // Returns the modal window host for the |parent| native window.
msw 2014/11/03 19:20:33 nit: update comment: s/native window/native view/?
tapted 2014/11/04 00:14:33 Done.
28 virtual web_modal::ModalDialogHost* GetModalDialogHost( 28 virtual web_modal::ModalDialogHost* GetModalDialogHost(
29 gfx::NativeWindow parent) = 0; 29 gfx::NativeView parent) = 0;
30 }; 30 };
31 31
32 #endif // COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_CLIENT_H_ 32 #endif // COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698