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

Side by Side Diff: extensions/shell/browser/shell_native_app_window.cc

Issue 543123004: Close AppWindow to perform clean shutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@apifeatures
Patch Set: Add comments Created 6 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 unified diff | Download patch
« no previous file with comments | « extensions/shell/browser/shell_desktop_controller.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "extensions/shell/browser/shell_native_app_window.h" 5 #include "extensions/shell/browser/shell_native_app_window.h"
6 6
7 #include "content/public/browser/web_contents.h" 7 #include "content/public/browser/web_contents.h"
8 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
9 #include "ui/gfx/geometry/insets.h" 9 #include "ui/gfx/geometry/insets.h"
10 #include "ui/gfx/geometry/point.h" 10 #include "ui/gfx/geometry/point.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 void ShellNativeAppWindow::Hide() { 74 void ShellNativeAppWindow::Hide() {
75 GetWindow()->Hide(); 75 GetWindow()->Hide();
76 } 76 }
77 77
78 void ShellNativeAppWindow::ShowInactive() { 78 void ShellNativeAppWindow::ShowInactive() {
79 NOTIMPLEMENTED(); 79 NOTIMPLEMENTED();
80 } 80 }
81 81
82 void ShellNativeAppWindow::Close() { 82 void ShellNativeAppWindow::Close() {
83 NOTIMPLEMENTED(); 83 app_window_->OnNativeClose();
84 } 84 }
85 85
86 void ShellNativeAppWindow::Activate() { 86 void ShellNativeAppWindow::Activate() {
87 NOTIMPLEMENTED(); 87 NOTIMPLEMENTED();
88 } 88 }
89 89
90 void ShellNativeAppWindow::Deactivate() { 90 void ShellNativeAppWindow::Deactivate() {
91 NOTIMPLEMENTED(); 91 NOTIMPLEMENTED();
92 } 92 }
93 93
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 bool ShellNativeAppWindow::CanHaveAlphaEnabled() const { 245 bool ShellNativeAppWindow::CanHaveAlphaEnabled() const {
246 NOTIMPLEMENTED(); 246 NOTIMPLEMENTED();
247 return false; 247 return false;
248 } 248 }
249 249
250 aura::Window* ShellNativeAppWindow::GetWindow() const { 250 aura::Window* ShellNativeAppWindow::GetWindow() const {
251 return app_window_->web_contents()->GetNativeView(); 251 return app_window_->web_contents()->GetNativeView();
252 } 252 }
253 253
254 } // namespace extensions 254 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_desktop_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698