1 // Copyright 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.
5 #ifndef OZONE_IMPL_IPC_DISPLAY_CHANNEL_H_
6 #define OZONE_IMPL_IPC_DISPLAY_CHANNEL_H_
8 #include "base/compiler_specific.h"
9 #include "base/strings/string16.h"
10 #include "ipc/ipc_listener.h"
12 namespace ozonewayland {
14 // OzoneDisplayChannel is responsible for listening to any messages sent by it's
15 // host counterpart in BrowserProcess. There will be always only one
16 // OzoneDisplayChannel per browser instance.
18 class OzoneDisplayChannel : public IPC::Listener {
20 OzoneDisplayChannel();
21 virtual ~OzoneDisplayChannel();
23 // IPC::Listener implementation.
24 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
26 void OnEstablishChannel();
28 void OnWidgetStateChanged(unsigned handleid,
32 void OnWidgetTitleChanged(unsigned widget, string16 title);
33 void OnWidgetAttributesChanged(unsigned widget,
40 DISALLOW_COPY_AND_ASSIGN(OzoneDisplayChannel);
43 } // namespace ozonewayland
45 #endif // OZONE_IMPL_IPC_DISPLAY_CHANNEL_H_