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

Unified Diff: ui/aura_shell/examples/window_type_launcher.cc

Issue 7977012: Adds a NonClientFrameView for generic toplevel windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
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_) {

Powered by Google App Engine
This is Rietveld 408576698