| 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/chrome_views_delegate.h" | 5 #include "chrome/browser/views/chrome_views_delegate.h" |
| 6 | 6 |
| 7 #include "app/clipboard/clipboard.h" | 7 #include "app/clipboard/clipboard.h" |
| 8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
| 9 #include "chrome/app/chrome_dll_resource.h" | 9 #include "chrome/app/chrome_dll_resource.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 return dictionary && dictionary->GetBoolean(L"maximized", maximized) && | 74 return dictionary && dictionary->GetBoolean(L"maximized", maximized) && |
| 75 maximized; | 75 maximized; |
| 76 } | 76 } |
| 77 | 77 |
| 78 #if defined(OS_WIN) | 78 #if defined(OS_WIN) |
| 79 HICON ChromeViewsDelegate::GetDefaultWindowIcon() const { | 79 HICON ChromeViewsDelegate::GetDefaultWindowIcon() const { |
| 80 return LoadIcon(GetModuleHandle(chrome::kBrowserResourcesDll), | 80 return LoadIcon(GetModuleHandle(chrome::kBrowserResourcesDll), |
| 81 MAKEINTRESOURCE(IDR_MAINFRAME)); | 81 MAKEINTRESOURCE(IDR_MAINFRAME)); |
| 82 } | 82 } |
| 83 #endif | 83 #endif |
| 84 |
| 85 void ChromeViewsDelegate::AddRef() { |
| 86 g_browser_process->AddRefModule(); |
| 87 } |
| 88 |
| 89 void ChromeViewsDelegate::ReleaseRef() { |
| 90 g_browser_process->ReleaseModule(); |
| 91 } |
| OLD | NEW |