Home | History | Annotate | Download | only in examples
      1 // Copyright (c) 2012 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.
      4 
      5 #ifndef UI_VIEWS_EXAMPLES_EXAMPLES_WINDOW_WITH_CONTENT_H_
      6 #define UI_VIEWS_EXAMPLES_EXAMPLES_WINDOW_WITH_CONTENT_H_
      7 
      8 #include "ui/gfx/native_widget_types.h"
      9 #include "ui/views/examples/views_examples_with_content_export.h"
     10 
     11 namespace content {
     12 class BrowserContext;
     13 }
     14 
     15 namespace views {
     16 namespace examples {
     17 
     18 enum Operation {
     19   DO_NOTHING_ON_CLOSE = 0,
     20   QUIT_ON_CLOSE,
     21 };
     22 
     23 // Shows a window with the views examples in it.
     24 VIEWS_EXAMPLES_WITH_CONTENT_EXPORT void ShowExamplesWindowWithContent(
     25     Operation operation,
     26     content::BrowserContext* browser_context,
     27     gfx::NativeView window_context);
     28 
     29 }  // namespace examples
     30 }  // namespace views
     31 
     32 #endif  // UI_VIEWS_EXAMPLES_EXAMPLES_WINDOW_WITH_CONTENT_H_
     33