Index: ui/aura_shell/examples/window_type_launcher.cc |
=================================================================== |
--- ui/aura_shell/examples/window_type_launcher.cc (revision 102277) |
+++ ui/aura_shell/examples/window_type_launcher.cc (working copy) |
@@ -8,6 +8,7 @@ |
#include "ui/aura/window.h" |
#include "ui/aura_shell/examples/example_factory.h" |
#include "ui/aura_shell/examples/toplevel_window.h" |
+#include "ui/aura_shell/toplevel_frame_view.h" |
#include "ui/gfx/canvas.h" |
#include "views/controls/button/text_button.h" |
#include "views/controls/menu/menu_item_view.h" |
@@ -71,10 +72,18 @@ |
return this; |
} |
+bool WindowTypeLauncher::CanResize() const { |
+ return true; |
+} |
+ |
std::wstring WindowTypeLauncher::GetWindowTitle() const { |
return L"Examples: Window Builder"; |
} |
+views::NonClientFrameView* WindowTypeLauncher::CreateNonClientFrameView() { |
+ return new aura_shell::internal::ToplevelFrameView; |
+} |
+ |
void WindowTypeLauncher::ButtonPressed(views::Button* sender, |
const views::Event& event) { |
if (sender == create_button_) { |