Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: chrome/browser/ui/browser_win.cc

Issue 10702030: Move fullscreen_controller* to a subdirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge tot Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/browser_window.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698