2013-04-18 12:50:58 +00:00
|
|
|
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef ATOM_BROWSER_NATIVE_WINDOW_OBSERVER_H_
|
|
|
|
#define ATOM_BROWSER_NATIVE_WINDOW_OBSERVER_H_
|
|
|
|
|
|
|
|
#include <iosfwd>
|
|
|
|
|
|
|
|
namespace atom {
|
|
|
|
|
|
|
|
class NativeWindowObserver {
|
|
|
|
public:
|
2013-04-18 15:50:47 +00:00
|
|
|
virtual ~NativeWindowObserver() {}
|
2013-04-18 12:50:58 +00:00
|
|
|
|
|
|
|
// Called when the web page of the window has updated it's document title.
|
|
|
|
virtual void OnPageTitleUpdated(bool* prevent_default,
|
|
|
|
const std::string& title) = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace atom
|
|
|
|
|
|
|
|
#endif // ATOM_BROWSER_NATIVE_WINDOW_OBSERVER_H_
|