OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/views/frame/browser_frame_win.h" | 5 #include "chrome/browser/ui/views/frame/browser_frame_win.h" |
6 | 6 |
7 #include <dwmapi.h> | 7 #include <dwmapi.h> |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "chrome/browser/ui/views/tabs/tab_strip.h" | 25 #include "chrome/browser/ui/views/tabs/tab_strip.h" |
26 #include "chrome/common/chrome_constants.h" | 26 #include "chrome/common/chrome_constants.h" |
27 #include "chrome/common/chrome_switches.h" | 27 #include "chrome/common/chrome_switches.h" |
28 #include "content/public/browser/browser_accessibility_state.h" | 28 #include "content/public/browser/browser_accessibility_state.h" |
29 #include "content/public/browser/page_navigator.h" | 29 #include "content/public/browser/page_navigator.h" |
30 #include "content/public/browser/web_contents.h" | 30 #include "content/public/browser/web_contents.h" |
31 #include "content/public/common/page_transition_types.h" | 31 #include "content/public/common/page_transition_types.h" |
32 #include "googleurl/src/gurl.h" | 32 #include "googleurl/src/gurl.h" |
33 #include "grit/generated_resources.h" | 33 #include "grit/generated_resources.h" |
34 #include "grit/theme_resources.h" | 34 #include "grit/theme_resources.h" |
| 35 #include "ui/base/l10n/l10n_util.h" |
35 #include "ui/base/layout.h" | 36 #include "ui/base/layout.h" |
36 #include "ui/base/l10n/l10n_util.h" | |
37 #include "ui/base/models/simple_menu_model.h" | 37 #include "ui/base/models/simple_menu_model.h" |
38 #include "ui/base/resource/resource_bundle.h" | 38 #include "ui/base/resource/resource_bundle.h" |
39 #include "ui/base/theme_provider.h" | 39 #include "ui/base/theme_provider.h" |
| 40 #include "ui/base/window_open_disposition.h" |
40 #include "ui/gfx/font.h" | 41 #include "ui/gfx/font.h" |
41 #include "ui/views/controls/menu/native_menu_win.h" | 42 #include "ui/views/controls/menu/native_menu_win.h" |
42 #include "ui/views/views_delegate.h" | 43 #include "ui/views/views_delegate.h" |
43 #include "ui/views/widget/native_widget_win.h" | 44 #include "ui/views/widget/native_widget_win.h" |
44 #include "ui/views/widget/widget.h" | 45 #include "ui/views/widget/widget.h" |
45 #include "ui/views/window/non_client_view.h" | 46 #include "ui/views/window/non_client_view.h" |
46 #include "webkit/glue/window_open_disposition.h" | |
47 #include "win8/util/win8_util.h" | 47 #include "win8/util/win8_util.h" |
48 | 48 |
49 #pragma comment(lib, "dwmapi.lib") | 49 #pragma comment(lib, "dwmapi.lib") |
50 | 50 |
51 // static | 51 // static |
52 static const int kClientEdgeThickness = 3; | 52 static const int kClientEdgeThickness = 3; |
53 static const int kTabDragWindowAlpha = 200; | 53 static const int kTabDragWindowAlpha = 200; |
54 // We need to offset the DWMFrame into the toolbar so that the blackness | 54 // We need to offset the DWMFrame into the toolbar so that the blackness |
55 // doesn't show up on our rounded corners. | 55 // doesn't show up on our rounded corners. |
56 static const int kDWMFrameTopOffset = 3; | 56 static const int kDWMFrameTopOffset = 3; |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 | 551 |
552 //////////////////////////////////////////////////////////////////////////////// | 552 //////////////////////////////////////////////////////////////////////////////// |
553 // NativeBrowserFrame, public: | 553 // NativeBrowserFrame, public: |
554 | 554 |
555 // static | 555 // static |
556 NativeBrowserFrame* NativeBrowserFrame::CreateNativeBrowserFrame( | 556 NativeBrowserFrame* NativeBrowserFrame::CreateNativeBrowserFrame( |
557 BrowserFrame* browser_frame, | 557 BrowserFrame* browser_frame, |
558 BrowserView* browser_view) { | 558 BrowserView* browser_view) { |
559 return new BrowserFrameWin(browser_frame, browser_view); | 559 return new BrowserFrameWin(browser_frame, browser_view); |
560 } | 560 } |
OLD | NEW |