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

Side by Side Diff: chrome/browser/ui/views/frame/browser_frame_win.cc

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
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/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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 return cached_minimize_button_x_delta_; 334 return cached_minimize_button_x_delta_;
335 else 335 else
336 return client_rect.right - cached_minimize_button_x_delta_; 336 return client_rect.right - cached_minimize_button_x_delta_;
337 } 337 }
338 338
339 void BrowserFrameWin::TabStripDisplayModeChanged() { 339 void BrowserFrameWin::TabStripDisplayModeChanged() {
340 UpdateDWMFrame(); 340 UpdateDWMFrame();
341 } 341 }
342 342
343 void BrowserFrameWin::ButtonPressed(views::Button* sender, 343 void BrowserFrameWin::ButtonPressed(views::Button* sender,
344 const views::Event& event) { 344 const ui::Event& event) {
345 HMODULE metro = base::win::GetMetroModule(); 345 HMODULE metro = base::win::GetMetroModule();
346 if (!metro) 346 if (!metro)
347 return; 347 return;
348 // Tell the metro_driver to flip our window. This causes the current 348 // Tell the metro_driver to flip our window. This causes the current
349 // browser window to be hidden and the next window to be shown. 349 // browser window to be hidden and the next window to be shown.
350 static FlipFrameWindows flip_window_fn = reinterpret_cast<FlipFrameWindows>( 350 static FlipFrameWindows flip_window_fn = reinterpret_cast<FlipFrameWindows>(
351 ::GetProcAddress(metro, "FlipFrameWindows")); 351 ::GetProcAddress(metro, "FlipFrameWindows"));
352 if (flip_window_fn) 352 if (flip_window_fn)
353 flip_window_fn(); 353 flip_window_fn();
354 } 354 }
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 585
586 //////////////////////////////////////////////////////////////////////////////// 586 ////////////////////////////////////////////////////////////////////////////////
587 // NativeBrowserFrame, public: 587 // NativeBrowserFrame, public:
588 588
589 // static 589 // static
590 NativeBrowserFrame* NativeBrowserFrame::CreateNativeBrowserFrame( 590 NativeBrowserFrame* NativeBrowserFrame::CreateNativeBrowserFrame(
591 BrowserFrame* browser_frame, 591 BrowserFrame* browser_frame,
592 BrowserView* browser_view) { 592 BrowserView* browser_view) {
593 return new BrowserFrameWin(browser_frame, browser_view); 593 return new BrowserFrameWin(browser_frame, browser_view);
594 } 594 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame_win.h ('k') | chrome/browser/ui/views/frame/opaque_browser_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698