| Index: chrome/browser/ui/gtk/panels/panel_gtk.cc
|
| diff --git a/chrome/browser/ui/gtk/panels/panel_gtk.cc b/chrome/browser/ui/gtk/panels/panel_gtk.cc
|
| index 268b6fac2e766ae36866ab7b8fe0f91655769c53..44b579efc7bb091c9354549d1940e7e9f3316fe9 100644
|
| --- a/chrome/browser/ui/gtk/panels/panel_gtk.cc
|
| +++ b/chrome/browser/ui/gtk/panels/panel_gtk.cc
|
| @@ -1028,6 +1028,7 @@ class GtkNativePanelTesting : public NativePanelTesting {
|
| virtual void FinishDragTitlebar() OVERRIDE;
|
| virtual bool VerifyDrawingAttention() const OVERRIDE;
|
| virtual bool VerifyActiveState(bool is_active) OVERRIDE;
|
| + virtual bool VerifyAppIcon() const OVERRIDE;
|
| virtual void WaitForWindowCreationToComplete() const OVERRIDE;
|
| virtual bool IsWindowSizeKnown() const OVERRIDE;
|
| virtual bool IsAnimatingBounds() const OVERRIDE;
|
| @@ -1111,6 +1112,13 @@ bool GtkNativePanelTesting::VerifyActiveState(bool is_active) {
|
| return false;
|
| }
|
|
|
| +bool GtkNativePanelTesting::VerifyAppIcon() const {
|
| + GdkPixbuf* icon = gtk_window_get_icon(panel_gtk_->GetNativePanelHandle());
|
| + return icon &&
|
| + gdk_pixbuf_get_width(icon) == panel::kPanelAppIconSize &&
|
| + gdk_pixbuf_get_height(icon) == panel::kPanelAppIconSize;
|
| +}
|
| +
|
| void GtkNativePanelTesting::WaitForWindowCreationToComplete() const {
|
| while (GetFrameSize().IsEmpty())
|
| MessageLoopForUI::current()->RunAllPending();
|
|
|