| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 "chrome/browser/ui/exclusive_access/exclusive_access_context.h" | 5 #include "chrome/browser/ui/exclusive_access/exclusive_access_context.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 // This file provides default implementations for the ExclusiveAccessContext |
| 11 // methods that only some platforms care about. |
| 12 |
| 10 bool ExclusiveAccessContext::SupportsFullscreenWithToolbar() const { | 13 bool ExclusiveAccessContext::SupportsFullscreenWithToolbar() const { |
| 11 return false; | 14 return false; |
| 12 } | 15 } |
| 13 | 16 |
| 14 void ExclusiveAccessContext::UpdateFullscreenWithToolbar(bool with_toolbar) { | 17 void ExclusiveAccessContext::UpdateFullscreenWithToolbar(bool with_toolbar) { |
| 15 NOTIMPLEMENTED(); | 18 NOTIMPLEMENTED(); |
| 16 } | 19 } |
| 17 | 20 |
| 18 void ExclusiveAccessContext::ToggleFullscreenToolbar() { | 21 void ExclusiveAccessContext::ToggleFullscreenToolbar() { |
| 19 NOTIMPLEMENTED(); | 22 NOTIMPLEMENTED(); |
| 20 } | 23 } |
| 21 | 24 |
| 25 bool ExclusiveAccessContext::IsFullscreenWithToolbar() const { |
| 26 return false; |
| 27 } |
| 28 |
| 22 #if defined(OS_WIN) | 29 #if defined(OS_WIN) |
| 23 void ExclusiveAccessContext::SetMetroSnapMode(bool enable) { | 30 void ExclusiveAccessContext::SetMetroSnapMode(bool enable) { |
| 24 NOTIMPLEMENTED(); | 31 NOTIMPLEMENTED(); |
| 25 } | 32 } |
| 26 | 33 |
| 27 bool ExclusiveAccessContext::IsInMetroSnapMode() const { | 34 bool ExclusiveAccessContext::IsInMetroSnapMode() const { |
| 28 return false; | 35 return false; |
| 29 } | 36 } |
| 30 #endif // defined(OS_WIN) | 37 #endif // defined(OS_WIN) |
| 31 | |
| 32 void ExclusiveAccessContext::UnhideDownloadShelf() { | |
| 33 // NOOP implementation. | |
| 34 } | |
| 35 | |
| 36 void ExclusiveAccessContext::HideDownloadShelf() { | |
| 37 // NOOP implementation. | |
| 38 } | |
| OLD | NEW |