| OLD | NEW |
| 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 "extensions/shell/browser/desktop_controller.h" | 8 #include "extensions/shell/browser/desktop_controller.h" |
| 9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
| 10 #include "ui/aura/window_tree_host.h" | 10 #include "ui/aura/window_tree_host.h" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 189 |
| 190 SkRegion* ShellNativeAppWindow::GetDraggableRegion() { | 190 SkRegion* ShellNativeAppWindow::GetDraggableRegion() { |
| 191 NOTIMPLEMENTED(); | 191 NOTIMPLEMENTED(); |
| 192 return NULL; | 192 return NULL; |
| 193 } | 193 } |
| 194 | 194 |
| 195 void ShellNativeAppWindow::UpdateShape(scoped_ptr<SkRegion> region) { | 195 void ShellNativeAppWindow::UpdateShape(scoped_ptr<SkRegion> region) { |
| 196 NOTIMPLEMENTED(); | 196 NOTIMPLEMENTED(); |
| 197 } | 197 } |
| 198 | 198 |
| 199 void ShellNativeAppWindow::SetInterceptAllKeys(bool want_all_keys) { |
| 200 NOTIMPLEMENTED(); |
| 201 } |
| 202 |
| 199 void ShellNativeAppWindow::HandleKeyboardEvent( | 203 void ShellNativeAppWindow::HandleKeyboardEvent( |
| 200 const content::NativeWebKeyboardEvent& event) { | 204 const content::NativeWebKeyboardEvent& event) { |
| 201 // No special handling. The WebContents will handle it. | 205 // No special handling. The WebContents will handle it. |
| 202 } | 206 } |
| 203 | 207 |
| 204 bool ShellNativeAppWindow::IsFrameless() const { | 208 bool ShellNativeAppWindow::IsFrameless() const { |
| 205 NOTIMPLEMENTED(); | 209 NOTIMPLEMENTED(); |
| 206 return false; | 210 return false; |
| 207 } | 211 } |
| 208 | 212 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 bool ShellNativeAppWindow::CanHaveAlphaEnabled() const { | 261 bool ShellNativeAppWindow::CanHaveAlphaEnabled() const { |
| 258 // No background to display if the window was transparent. | 262 // No background to display if the window was transparent. |
| 259 return false; | 263 return false; |
| 260 } | 264 } |
| 261 | 265 |
| 262 aura::Window* ShellNativeAppWindow::GetWindow() const { | 266 aura::Window* ShellNativeAppWindow::GetWindow() const { |
| 263 return app_window_->web_contents()->GetNativeView(); | 267 return app_window_->web_contents()->GetNativeView(); |
| 264 } | 268 } |
| 265 | 269 |
| 266 } // namespace extensions | 270 } // namespace extensions |
| OLD | NEW |