OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/options/advanced_contents_view.h" | 5 #include "chrome/browser/views/options/advanced_contents_view.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include <cryptuiapi.h> | 9 #include <cryptuiapi.h> |
10 #pragma comment(lib, "cryptui.lib") | 10 #pragma comment(lib, "cryptui.lib") |
11 #include <shellapi.h> | 11 #include <shellapi.h> |
12 #include <vsstyle.h> | 12 #include <vsstyle.h> |
13 #include <vssym32.h> | 13 #include <vssym32.h> |
14 | 14 |
15 #include "app/l10n_util.h" | 15 #include "app/l10n_util.h" |
16 #include "app/resource_bundle.h" | 16 #include "app/resource_bundle.h" |
17 #include "base/command_line.h" | 17 #include "base/command_line.h" |
18 #include "base/file_util.h" | 18 #include "base/file_util.h" |
19 #include "base/i18n/rtl.h" | 19 #include "base/i18n/rtl.h" |
20 #include "base/message_loop.h" | 20 #include "base/message_loop.h" |
21 #include "base/path_service.h" | 21 #include "base/path_service.h" |
22 #include "base/scoped_callback_factory.h" | 22 #include "base/scoped_callback_factory.h" |
23 #include "base/thread.h" | 23 #include "base/threading/thread.h" |
24 #include "base/utf_string_conversions.h" | 24 #include "base/utf_string_conversions.h" |
25 #include "chrome/browser/browser_list.h" | 25 #include "chrome/browser/browser_list.h" |
26 #include "chrome/browser/browser_process.h" | 26 #include "chrome/browser/browser_process.h" |
27 #include "chrome/browser/download/download_manager.h" | 27 #include "chrome/browser/download/download_manager.h" |
28 #include "chrome/browser/download/download_prefs.h" | 28 #include "chrome/browser/download/download_prefs.h" |
29 #include "chrome/browser/google/google_util.h" | 29 #include "chrome/browser/google/google_util.h" |
30 #include "chrome/browser/gears_integration.h" | 30 #include "chrome/browser/gears_integration.h" |
31 #include "chrome/browser/prefs/pref_member.h" | 31 #include "chrome/browser/prefs/pref_member.h" |
32 #include "chrome/browser/prefs/pref_service.h" | 32 #include "chrome/browser/prefs/pref_service.h" |
33 #include "chrome/browser/prefs/pref_set_observer.h" | 33 #include "chrome/browser/prefs/pref_set_observer.h" |
(...skipping 1582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1616 // AdvancedScrollViewContainer, views::View overrides: | 1616 // AdvancedScrollViewContainer, views::View overrides: |
1617 | 1617 |
1618 void AdvancedScrollViewContainer::Layout() { | 1618 void AdvancedScrollViewContainer::Layout() { |
1619 gfx::Rect lb = GetLocalBounds(false); | 1619 gfx::Rect lb = GetLocalBounds(false); |
1620 | 1620 |
1621 gfx::Size border = gfx::NativeTheme::instance()->GetThemeBorderSize( | 1621 gfx::Size border = gfx::NativeTheme::instance()->GetThemeBorderSize( |
1622 gfx::NativeTheme::LIST); | 1622 gfx::NativeTheme::LIST); |
1623 lb.Inset(border.width(), border.height()); | 1623 lb.Inset(border.width(), border.height()); |
1624 scroll_view_->SetBounds(lb); | 1624 scroll_view_->SetBounds(lb); |
1625 } | 1625 } |
OLD | NEW |