summaryrefslogtreecommitdiffstats
path: root/dom/ipc/RemoteWebProgress.cpp
blob: 0bba9a3aa9755f875ea705330f9de230f7a169c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "RemoteWebProgress.h"

namespace mozilla::dom {

NS_IMPL_ADDREF(RemoteWebProgress)
NS_IMPL_RELEASE(RemoteWebProgress)

NS_INTERFACE_MAP_BEGIN(RemoteWebProgress)
  NS_INTERFACE_MAP_ENTRY(nsISupports)
  NS_INTERFACE_MAP_ENTRY(nsIWebProgress)
NS_INTERFACE_MAP_END

NS_IMETHODIMP RemoteWebProgress::AddProgressListener(
    nsIWebProgressListener* aListener, uint32_t aNotifyMask) {
  return NS_ERROR_NOT_IMPLEMENTED;
}

NS_IMETHODIMP RemoteWebProgress::RemoveProgressListener(
    nsIWebProgressListener* aListener) {
  return NS_ERROR_NOT_IMPLEMENTED;
}

NS_IMETHODIMP RemoteWebProgress::GetDOMWindow(mozIDOMWindowProxy** aDOMWindow) {
  return NS_ERROR_NOT_AVAILABLE;
}

NS_IMETHODIMP RemoteWebProgress::GetIsTopLevel(bool* aIsTopLevel) {
  NS_ENSURE_ARG_POINTER(aIsTopLevel);
  *aIsTopLevel = mIsTopLevel;
  return NS_OK;
}

NS_IMETHODIMP RemoteWebProgress::GetIsLoadingDocument(
    bool* aIsLoadingDocument) {
  NS_ENSURE_ARG_POINTER(aIsLoadingDocument);
  *aIsLoadingDocument = mIsLoadingDocument;
  return NS_OK;
}

NS_IMETHODIMP RemoteWebProgress::GetLoadType(uint32_t* aLoadType) {
  NS_ENSURE_ARG_POINTER(aLoadType);
  *aLoadType = mLoadType;
  return NS_OK;
}

NS_IMETHODIMP RemoteWebProgress::GetTarget(nsIEventTarget** aTarget) {
  return NS_ERROR_NOT_IMPLEMENTED;
}

NS_IMETHODIMP RemoteWebProgress::SetTarget(nsIEventTarget* aTarget) {
  return NS_ERROR_NOT_IMPLEMENTED;
}

}  // namespace mozilla::dom