Upstream version 5.34.97.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / android / core / src / org / xwalk / core / extension / api / DisplayManagerNull.java
1 // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.xwalk.core.extension.api;
6
7 import android.view.Display;
8
9 /**
10  * A empty implementation for build version lower than API level 17.
11  */
12 public class DisplayManagerNull extends XWalkDisplayManager {
13     private final static Display[] NO_DISPLAYS = {};
14
15     public DisplayManagerNull() {
16     }
17
18     @Override
19     public Display getDisplay(int displayId) {
20         return null;
21     }
22
23     @Override
24     public Display[] getDisplays() {
25         return NO_DISPLAYS;
26     }
27
28     @Override
29     public Display[] getPresentationDisplays() {
30         return NO_DISPLAYS;
31     }
32 }