// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
-namespace gfx {
-class Image;
-}
-
#include "atom/browser/api/atom_api_window.h"
#include "atom/browser/api/atom_api_web_contents.h"
#include "atom/browser/native_window.h"
#include "atom/common/native_mate_converters/gfx_converter.h"
#include "atom/common/native_mate_converters/gurl_converter.h"
-#include "atom/common/native_mate_converters/string16_converter.h"
#include "atom/common/native_mate_converters/image_converter.h"
+#include "atom/common/native_mate_converters/string16_converter.h"
#include "content/public/browser/render_process_host.h"
#include "native_mate/callback.h"
#include "native_mate/constructor.h"
}
void Window::SetOverlayIcon(const gfx::Image& overlay,
- const std::string& description) {
+ const std::string& description) {
window_->SetOverlayIcon(overlay, description);
}
gfx::NativeWindow GetNativeWindow() override;
void SetProgressBar(double progress) override;
void SetOverlayIcon(const gfx::Image& overlay,
- const std::string& description) override;
+ const std::string& description) override;
void ShowDefinitionForSelection() override;
// Returns true if |point| in local Cocoa coordinate system falls within
[dock_tile display];
}
-void NativeWindowMac::SetOverlayIcon(const gfx::Image& overlay,
- const std::string& description) {
+void NativeWindowMac::SetOverlayIcon(const gfx::Image& overlay,
+ const std::string& description) {
}
void NativeWindowMac::ShowDefinitionForSelection() {
#include <string>
#include <vector>
+
#include "atom/browser/ui/views/menu_bar.h"
#include "atom/browser/ui/views/menu_layout.h"
#include "atom/common/draggable_region.h"
#include "base/win/scoped_comptr.h"
#include "base/win/windows_version.h"
#include "ui/base/win/shell.h"
-#include "ui/gfx/win/dpi.h"
#include "ui/gfx/icon_util.h"
+#include "ui/gfx/win/dpi.h"
#include "ui/views/win/hwnd_util.h"
#endif
#endif
}
-void NativeWindowViews::SetOverlayIcon(
- const gfx::Image& overlay,
- const std::string& description) {
+void NativeWindowViews::SetOverlayIcon(const gfx::Image& overlay,
+ const std::string& description) {
#if defined(OS_WIN)
if (base::win::GetVersion() < base::win::VERSION_WIN7)
return;
std::wstring wstr = std::wstring(description.begin(), description.end());
taskbar->SetOverlayIcon(frame,
- IconUtil::CreateHICONFromSkBitmap(overlay.AsBitmap()),
- wstr.c_str());
+ IconUtil::CreateHICONFromSkBitmap(overlay.AsBitmap()),
+ wstr.c_str());
#endif
}
### BrowserWindow.setOverlayIcon(overlay, description)
* `overlay` [Image](image.md) - the icon to display on the bottom right corner of the Taskbar icon. If this parameter is `null`, the overlay is cleared.
-
* `description` String - a description that will be provided to Accessibility screenreaders
Sets a 16px overlay onto the current Taskbar icon, usually used to convey some sort of application status or to passively notify the user.