| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 bool ShellNativeAppWindow::IsAlwaysOnTop() const { | 130 bool ShellNativeAppWindow::IsAlwaysOnTop() const { |
| 131 return false; | 131 return false; |
| 132 } | 132 } |
| 133 | 133 |
| 134 void ShellNativeAppWindow::SetAlwaysOnTop(bool always_on_top) { | 134 void ShellNativeAppWindow::SetAlwaysOnTop(bool always_on_top) { |
| 135 NOTIMPLEMENTED(); | 135 NOTIMPLEMENTED(); |
| 136 } | 136 } |
| 137 | 137 |
| 138 gfx::NativeView ShellNativeAppWindow::GetHostView() const { | 138 gfx::NativeView ShellNativeAppWindow::GetHostView() const { |
| 139 NOTIMPLEMENTED(); | 139 NOTIMPLEMENTED(); |
| 140 return NULL; | 140 return nullptr; |
| 141 } | 141 } |
| 142 | 142 |
| 143 gfx::Point ShellNativeAppWindow::GetDialogPosition(const gfx::Size& size) { | 143 gfx::Point ShellNativeAppWindow::GetDialogPosition(const gfx::Size& size) { |
| 144 NOTIMPLEMENTED(); | 144 NOTIMPLEMENTED(); |
| 145 return gfx::Point(); | 145 return gfx::Point(); |
| 146 } | 146 } |
| 147 | 147 |
| 148 void ShellNativeAppWindow::AddObserver( | 148 void ShellNativeAppWindow::AddObserver( |
| 149 web_modal::ModalDialogHostObserver* observer) { | 149 web_modal::ModalDialogHostObserver* observer) { |
| 150 NOTIMPLEMENTED(); | 150 NOTIMPLEMENTED(); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 181 // No badge to update. | 181 // No badge to update. |
| 182 } | 182 } |
| 183 | 183 |
| 184 void ShellNativeAppWindow::UpdateDraggableRegions( | 184 void ShellNativeAppWindow::UpdateDraggableRegions( |
| 185 const std::vector<DraggableRegion>& regions) { | 185 const std::vector<DraggableRegion>& regions) { |
| 186 NOTIMPLEMENTED(); | 186 NOTIMPLEMENTED(); |
| 187 } | 187 } |
| 188 | 188 |
| 189 SkRegion* ShellNativeAppWindow::GetDraggableRegion() { | 189 SkRegion* ShellNativeAppWindow::GetDraggableRegion() { |
| 190 NOTIMPLEMENTED(); | 190 NOTIMPLEMENTED(); |
| 191 return NULL; | 191 return nullptr; |
| 192 } | 192 } |
| 193 | 193 |
| 194 void ShellNativeAppWindow::UpdateShape(scoped_ptr<SkRegion> region) { | 194 void ShellNativeAppWindow::UpdateShape(scoped_ptr<SkRegion> region) { |
| 195 NOTIMPLEMENTED(); | 195 NOTIMPLEMENTED(); |
| 196 } | 196 } |
| 197 | 197 |
| 198 void ShellNativeAppWindow::HandleKeyboardEvent( | 198 void ShellNativeAppWindow::HandleKeyboardEvent( |
| 199 const content::NativeWebKeyboardEvent& event) { | 199 const content::NativeWebKeyboardEvent& event) { |
| 200 // No special handling. The WebContents will handle it. | 200 // No special handling. The WebContents will handle it. |
| 201 } | 201 } |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 bool ShellNativeAppWindow::CanHaveAlphaEnabled() const { | 256 bool ShellNativeAppWindow::CanHaveAlphaEnabled() const { |
| 257 // No background to display if the window was transparent. | 257 // No background to display if the window was transparent. |
| 258 return false; | 258 return false; |
| 259 } | 259 } |
| 260 | 260 |
| 261 aura::Window* ShellNativeAppWindow::GetWindow() const { | 261 aura::Window* ShellNativeAppWindow::GetWindow() const { |
| 262 return app_window_->web_contents()->GetNativeView(); | 262 return app_window_->web_contents()->GetNativeView(); |
| 263 } | 263 } |
| 264 | 264 |
| 265 } // namespace extensions | 265 } // namespace extensions |
| OLD | NEW |