Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: chrome/browser/ui/views/browser_bubble_gtk.cc

Issue 5854003: Remove CrOS hack from ppapi.gyp that made the include directories work. This... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/views/browser_bubble.h" 5 #include "chrome/browser/views/browser_bubble.h"
6 6
7 #include "chrome/browser/views/frame/browser_view.h" 7 #include "chrome/browser/views/frame/browser_view.h"
8 #include "views/widget/widget_gtk.h" 8 #include "views/widget/widget_gtk.h"
9 #include "views/window/window.h" 9 #include "views/window/window.h"
10 10
11 #if defined(OS_CHROMEOS) 11 #if defined(OS_CHROMEOS)
12 #include "chrome/browser/chromeos/wm_ipc.h" 12 #include "chrome/browser/chromeos/wm_ipc.h"
13 #include "cros/chromeos_wm_ipc_enums.h" 13 #include "third_party/cros/chromeos_wm_ipc_enums.h"
14 #endif 14 #endif
15 15
16 namespace { 16 namespace {
17 17
18 class BubbleWidget : public views::WidgetGtk { 18 class BubbleWidget : public views::WidgetGtk {
19 public: 19 public:
20 explicit BubbleWidget(BrowserBubble* bubble) 20 explicit BubbleWidget(BrowserBubble* bubble)
21 : views::WidgetGtk(views::WidgetGtk::TYPE_WINDOW), 21 : views::WidgetGtk(views::WidgetGtk::TYPE_WINDOW),
22 bubble_(bubble) { 22 bubble_(bubble) {
23 } 23 }
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 visible_ = true; 111 visible_ = true;
112 } 112 }
113 113
114 void BrowserBubble::Hide() { 114 void BrowserBubble::Hide() {
115 if (!visible_) 115 if (!visible_)
116 return; 116 return;
117 views::WidgetGtk* pop = static_cast<views::WidgetGtk*>(popup_); 117 views::WidgetGtk* pop = static_cast<views::WidgetGtk*>(popup_);
118 pop->Hide(); 118 pop->Hide();
119 visible_ = false; 119 visible_ = false;
120 } 120 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/wm_overview_title.cc ('k') | chrome/browser/ui/views/extensions/extension_popup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698