9047f81835
Fix #3297. Fix #2573.
45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
// Copyright (c) 2013 GitHub, Inc.
|
|
// Use of this source code is governed by the MIT license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include "atom/browser/browser.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "atom/browser/native_window.h"
|
|
#include "atom/browser/window_list.h"
|
|
#include "atom/common/atom_version.h"
|
|
#include "brightray/common/application_info.h"
|
|
|
|
namespace atom {
|
|
|
|
void Browser::Focus() {
|
|
// Focus on the first visible window.
|
|
WindowList* list = WindowList::GetInstance();
|
|
for (WindowList::iterator iter = list->begin(); iter != list->end(); ++iter) {
|
|
NativeWindow* window = *iter;
|
|
if (window->IsVisible()) {
|
|
window->Focus(true);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
void Browser::AddRecentDocument(const base::FilePath& path) {
|
|
}
|
|
|
|
void Browser::ClearRecentDocuments() {
|
|
}
|
|
|
|
void Browser::SetAppUserModelID(const base::string16& name) {
|
|
}
|
|
|
|
std::string Browser::GetExecutableFileVersion() const {
|
|
return brightray::GetApplicationVersion();
|
|
}
|
|
|
|
std::string Browser::GetExecutableFileProductName() const {
|
|
return brightray::GetApplicationName();
|
|
}
|
|
|
|
} // namespace atom
|