| OLD | NEW |
| 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/frame/browser_frame_gtk.h" | 5 #include "chrome/browser/views/frame/browser_frame_gtk.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/profile.h" | 8 #include "chrome/browser/profile.h" |
| 9 #include "chrome/browser/views/frame/browser_root_view.h" | 9 #include "chrome/browser/views/frame/browser_root_view.h" |
| 10 #include "chrome/browser/views/frame/browser_view.h" | 10 #include "chrome/browser/views/frame/browser_view.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 } | 74 } |
| 75 | 75 |
| 76 ThemeProvider* BrowserFrameGtk::GetDefaultThemeProvider() const { | 76 ThemeProvider* BrowserFrameGtk::GetDefaultThemeProvider() const { |
| 77 return profile_->GetThemeProvider(); | 77 return profile_->GetThemeProvider(); |
| 78 } | 78 } |
| 79 | 79 |
| 80 views::RootView* BrowserFrameGtk::CreateRootView() { | 80 views::RootView* BrowserFrameGtk::CreateRootView() { |
| 81 root_view_ = new BrowserRootView(browser_view_, this); | 81 root_view_ = new BrowserRootView(browser_view_, this); |
| 82 return root_view_; | 82 return root_view_; |
| 83 } | 83 } |
| 84 |
| 85 gboolean BrowserFrameGtk::OnFocusIn(GtkWidget* widget, |
| 86 GdkEventFocus* event) { |
| 87 browser_view_->ActivationChanged(true); |
| 88 return views::WindowGtk::OnFocusIn(widget, event); |
| 89 } |
| 90 |
| 91 gboolean BrowserFrameGtk::OnFocusOut(GtkWidget* widget, |
| 92 GdkEventFocus* event) { |
| 93 browser_view_->ActivationChanged(false); |
| 94 return views::WindowGtk::OnFocusOut(widget, event); |
| 95 } |
| 96 |
| 97 |
| OLD | NEW |