| 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/browser.h" | 5 #include "chrome/browser/ui/browser.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "base/win/metro.h" | 8 #include "base/win/metro.h" |
| 9 #include "chrome/browser/bookmarks/bookmark_utils.h" | 9 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/ui/browser_commands.h" | 11 #include "chrome/browser/ui/browser_commands.h" |
| 12 #include "chrome/browser/ui/browser_finder.h" | 12 #include "chrome/browser/ui/browser_finder.h" |
| 13 #include "chrome/browser/ui/fullscreen_controller.h" | 13 #include "chrome/browser/ui/fullscreen/fullscreen_controller.h" |
| 14 #include "chrome/browser/ui/tab_contents/tab_contents.h" | 14 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 void NewMetroWindow(Browser* source_browser, Profile* profile) { | 18 void NewMetroWindow(Browser* source_browser, Profile* profile) { |
| 19 typedef void (*FlipFrameWindows)(); | 19 typedef void (*FlipFrameWindows)(); |
| 20 | 20 |
| 21 static FlipFrameWindows flip_window_fn = reinterpret_cast<FlipFrameWindows>( | 21 static FlipFrameWindows flip_window_fn = reinterpret_cast<FlipFrameWindows>( |
| 22 ::GetProcAddress(base::win::GetMetroModule(), "FlipFrameWindows")); | 22 ::GetProcAddress(base::win::GetMetroModule(), "FlipFrameWindows")); |
| 23 DCHECK(flip_window_fn); | 23 DCHECK(flip_window_fn); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 metro_pin_url_to_start_screen(title, UTF8ToUTF16(url.spec())); | 79 metro_pin_url_to_start_screen(title, UTF8ToUTF16(url.spec())); |
| 80 return; | 80 return; |
| 81 } | 81 } |
| 82 } | 82 } |
| 83 | 83 |
| 84 } // namespace chrome | 84 } // namespace chrome |
| 85 | 85 |
| 86 void Browser::SetMetroSnapMode(bool enable) { | 86 void Browser::SetMetroSnapMode(bool enable) { |
| 87 fullscreen_controller_->SetMetroSnapMode(enable); | 87 fullscreen_controller_->SetMetroSnapMode(enable); |
| 88 } | 88 } |
| OLD | NEW |