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

Side by Side Diff: Source/core/inspector/InspectorOverlay.cpp

Issue 23672027: Rename OS(WINDOWS) to OS(WIN) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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
« no previous file with comments | « Source/core/html/HTMLSelectElementWin.cpp ('k') | Source/core/page/AutoscrollController.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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 writer->addData(reinterpret_cast<const char*>(InspectorOverlayPage_html), si zeof(InspectorOverlayPage_html)); 634 writer->addData(reinterpret_cast<const char*>(InspectorOverlayPage_html), si zeof(InspectorOverlayPage_html));
635 loader->activeDocumentLoader()->endWriting(writer); 635 loader->activeDocumentLoader()->endWriting(writer);
636 v8::Isolate* isolate = frame->script()->isolate(); 636 v8::Isolate* isolate = frame->script()->isolate();
637 v8::HandleScope handleScope(isolate); 637 v8::HandleScope handleScope(isolate);
638 v8::Handle<v8::Context> frameContext = frame->script()->currentWorldContext( ); 638 v8::Handle<v8::Context> frameContext = frame->script()->currentWorldContext( );
639 v8::Context::Scope contextScope(frameContext); 639 v8::Context::Scope contextScope(frameContext);
640 v8::Handle<v8::Value> overlayHostObj = toV8(m_overlayHost.get(), v8::Handle< v8::Object>(), isolate); 640 v8::Handle<v8::Value> overlayHostObj = toV8(m_overlayHost.get(), v8::Handle< v8::Object>(), isolate);
641 v8::Handle<v8::Object> global = frameContext->Global(); 641 v8::Handle<v8::Object> global = frameContext->Global();
642 global->Set(v8::String::New("InspectorOverlayHost"), overlayHostObj); 642 global->Set(v8::String::New("InspectorOverlayHost"), overlayHostObj);
643 643
644 #if OS(WINDOWS) 644 #if OS(WIN)
645 evaluateInOverlay("setPlatform", "windows"); 645 evaluateInOverlay("setPlatform", "windows");
646 #elif OS(MACOSX) 646 #elif OS(MACOSX)
647 evaluateInOverlay("setPlatform", "mac"); 647 evaluateInOverlay("setPlatform", "mac");
648 #elif OS(UNIX) 648 #elif OS(UNIX)
649 evaluateInOverlay("setPlatform", "linux"); 649 evaluateInOverlay("setPlatform", "linux");
650 #endif 650 #endif
651 651
652 return m_overlayPage.get(); 652 return m_overlayPage.get();
653 } 653 }
654 654
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 } 693 }
694 694
695 void InspectorOverlay::freePage() 695 void InspectorOverlay::freePage()
696 { 696 {
697 m_overlayPage.clear(); 697 m_overlayPage.clear();
698 m_overlayChromeClient.clear(); 698 m_overlayChromeClient.clear();
699 m_timer.stop(); 699 m_timer.stop();
700 } 700 }
701 701
702 } // namespace WebCore 702 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/HTMLSelectElementWin.cpp ('k') | Source/core/page/AutoscrollController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698